X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fproto.h;h=aa83e83a98490f84673411d71f38411da15d8bb8;hb=23609de645133c4a2fa6b913ef677300fe9357b8;hp=a2e03a1ffe5132ee26eabf2fc4868fa07c1651ec;hpb=71d1f0aef5ee94e3c3b0a58aca5e469218717bbd;p=srvx.git diff --git a/src/proto.h b/src/proto.h index a2e03a1..aa83e83 100644 --- a/src/proto.h +++ b/src/proto.h @@ -188,6 +188,7 @@ unsigned int irc_user_modes(const struct userNode *user, char modes[], size_t le /* Channel mode manipulation */ #define KEYLEN 23 +#define NOFLOODLEN 15 #define CHANNELLEN 200 typedef unsigned long chan_mode_t; /* Rules for struct mod_chanmode: @@ -203,6 +204,7 @@ struct mod_chanmode { #endif char new_key[KEYLEN + 1]; char new_altchan[CHANNELLEN + 1]; + char new_noflood[NOFLOODLEN + 1]; char new_upass[KEYLEN + 1]; char new_apass[KEYLEN + 1]; struct { @@ -223,6 +225,7 @@ struct mod_chanmode { #define MCP_IGN_REGISTERED 0x0080 /* chan is already registered; ignore changes to MODE_REGISTERED */ #define MC_ANNOUNCE 0x0100 /* send a mod_chanmode() change out */ #define MC_NOTIFY 0x0200 /* make local callbacks to announce */ +#define MCP_OPERMODE 0x0400 #ifdef NDEBUG #define mod_chanmode_init(CHANMODE) do { memset((CHANMODE), 0, sizeof(*CHANMODE)); } while (0) #else