]> jfr.im git - solanum.git/blobdiff - include/chmode.h
Complain to opers if a server that isn't a service tries to SU/RSFNC/NICKDELAY/SVSLOGIN.
[solanum.git] / include / chmode.h
index 94f7ea7f3f6d0e5b1e2f65709a0fec4d067d9e1e..ae1345e283536f1581dc6fb84ff89d14b56251df 100644 (file)
 #ifndef INCLUDED_chmode_h
 #define INCLUDED_chmode_h
 
+/* something not included in messages.tab
+ * to change some hooks behaviour when needed
+ * -- dwr
+ */
+#define ERR_CUSTOM 1000
+
+extern int chmode_flags[256];
+
 extern void chm_nosuch(struct Client *source_p, struct Channel *chptr,
           int alevel, int parc, int *parn,
           const char **parv, int *errors, int dir, char c, long mode_type);
@@ -55,9 +63,6 @@ extern void chm_key(struct Client *source_p, struct Channel *chptr,
 extern void chm_limit(struct Client *source_p, struct Channel *chptr,
           int alevel, int parc, int *parn,
           const char **parv, int *errors, int dir, char c, long mode_type);
-extern void chm_regonly(struct Client *source_p, struct Channel *chptr,
-          int alevel, int parc, int *parn,
-          const char **parv, int *errors, int dir, char c, long mode_type);
 extern void chm_op(struct Client *source_p, struct Channel *chptr,
           int alevel, int parc, int *parn,
           const char **parv, int *errors, int dir, char c, long mode_type);
@@ -65,9 +70,9 @@ extern void chm_voice(struct Client *source_p, struct Channel *chptr,
           int alevel, int parc, int *parn,
           const char **parv, int *errors, int dir, char c, long mode_type);
 
-extern void construct_noparam_modes(void);
-extern void find_orphaned_cflags(void);
-extern unsigned int find_cflag_slot(void);
+extern unsigned int cflag_add(char c, ChannelModeFunc function);
+extern void cflag_orphan(char c);
+extern void construct_cflags_strings(void);
 extern char cflagsbuf[256];
 extern char cflagsmyinfo[256];