X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/eba517019e989efd72c2c99cd1b28fb8b12917de..b869e117f01851f05ff6d02b65b2719e829057a7:/include/chmode.h diff --git a/include/chmode.h b/include/chmode.h index 5a46250..9538194 100644 --- a/include/chmode.h +++ b/include/chmode.h @@ -28,6 +28,14 @@ #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); @@ -58,9 +66,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_owner(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 +82,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