]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/chmode.h
Update omode so that it can set +ah.
[irc/rqf/shadowircd.git] / include / chmode.h
index 5a4625045be0f52932b72d8d6687559328d94b5e..9fd623c6d32bb4a7989058391bb791f6818f9ff8 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);
@@ -40,6 +48,9 @@ extern void chm_simple(struct Client *source_p, struct Channel *chptr,
 extern void chm_ban(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_hidden(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_staff(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);
@@ -58,9 +69,15 @@ extern void chm_limit(struct Client *source_p, struct Channel *chptr,
 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_admin(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);
+extern void chm_halfop(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_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);
@@ -68,5 +85,7 @@ extern void chm_voice(struct Client *source_p, struct Channel *chptr,
 extern void construct_noparam_modes(void);
 extern void find_orphaned_cflags(void);
 extern unsigned int find_cflag_slot(void);
+extern char cflagsbuf[256];
+extern char cflagsmyinfo[256];
 
 #endif