X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/2392eb24cd19cede27f51ffa7f3d70b29edcbe33..76db5f7dd4bda1d99888c90d0455ebed4fd0b39b:/include/chmode.h diff --git a/include/chmode.h b/include/chmode.h index 94f7ea7..915741f 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); @@ -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); @@ -55,20 +66,25 @@ 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, +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); -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 void construct_cflag_param_string(void); extern char cflagsbuf[256]; extern char cflagsmyinfo[256]; +extern char cflagsparaminfo[256]; #endif