X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/a32da4c70ca85b879f8162469ae37ffeca500b99..30f7b947f03d97a3d526bbadb50b9dd71aba4117:/src/hash.h diff --git a/src/hash.h b/src/hash.h index e5aca9c..8ee04e3 100644 --- a/src/hash.h +++ b/src/hash.h @@ -1,7 +1,7 @@ /* hash.h - IRC network state database * Copyright 2000-2004 srvx Development Team * - * This file is part of srvx. + * This file is part of x3. * * srvx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -47,7 +47,7 @@ #define MODE_OPERSONLY 0x00080000 /* +O Opers only */ #define MODE_NOQUITMSGS 0x00100000 /* +Q suppress messages from quit notices */ #define MODE_NOAMSG 0x00200000 /* +T no multi-target messages */ -#define MODE_SSLONLY 0x00400000 /* +z ssl only */ +#define MODE_SSLONLY 0x00400000 /* +Z ssl only */ #define MODE_HALFOP 0x00800000 /* +h USER */ #define MODE_EXEMPT 0x01000000 /* +e exempt */ #define MODE_REMOVE 0x80000000 @@ -104,7 +104,7 @@ #define CHANNELLEN 200 #define MAXMODEPARAMS 6 -#define MAXBANS 45 +#define MAXBANS 128 #define MAXEXEMPTS 45 /* IDLEN is 6 because it takes 5.33 Base64 digits to store 32 bytes. */ @@ -237,7 +237,7 @@ void NickChange(struct userNode* user, const char *new_nick, int no_announce); typedef void (*account_func_t) (struct userNode *user, const char *stamp); void reg_account_func(account_func_t handler); void call_account_func(struct userNode *user, const char *stamp); -void StampUser(struct userNode *user, const char *stamp); +void StampUser(struct userNode *user, const char *stamp, time_t timestamp); void assign_fakehost(struct userNode *user, const char *host, int announce); typedef void (*new_channel_func_t) (struct chanNode *chan); @@ -269,6 +269,7 @@ int ChannelExemptExists(struct chanNode *channel, const char *exempt); typedef int (*topic_func_t)(struct userNode *who, struct chanNode *chan, const char *old_topic); void reg_topic_func(topic_func_t handler); void SetChannelTopic(struct chanNode *channel, struct userNode *user, const char *topic, int announce); +struct userNode *IsInChannel(struct chanNode *channel, struct userNode *user); void init_structs(void);