added CMODE_AUDITORIUM & CMODE_NOFLOOD
[srvx.git] / src / proto.h
index a2e03a1ffe5132ee26eabf2fc4868fa07c1651ec..aa83e83a98490f84673411d71f38411da15d8bb8 100644 (file)
@@ -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