X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/fba62b015135e39d2c6261b37c9d7f93f551d578..f966f567b858bf5e91ae0f49f29e6717e96a6763:/include/channel.h?ds=sidebyside diff --git a/include/channel.h b/include/channel.h index b4da1b6..93001a3 100644 --- a/include/channel.h +++ b/include/channel.h @@ -171,6 +171,12 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p, #define MODE_FREEINVITE 0x0800 /* allow free use of /invite */ #define MODE_FREETARGET 0x1000 /* can be forwarded to without authorization */ #define MODE_DISFORWARD 0x2000 /* disable channel forwarding */ +#define MODE_NOCTCP 0x8000 /* Block CTCPs directed to this channel */ +#define MODE_NONOTICE 0x16000 /* Block notices directed to this channel */ +#define MODE_NOACTION 0x32000 /* Block CTCP ACTION directed to this channel */ +#define MODE_NOKICK 0x64000 /* Disable /kick on this channel */ +#define MODE_NONICK 0x128000 /* Disable /nick for anyone on this channel */ +#define MODE_NOCAPS 0x256000 /* Block messages in all capital letters */ #define CHFL_BAN 0x10000000 /* ban channel flag */ #define CHFL_EXCEPTION 0x20000000 /* exception to ban channel flag */ @@ -237,8 +243,12 @@ extern void del_invite(struct Channel *chptr, struct Client *who); const char *channel_modes(struct Channel *chptr, struct Client *who); +extern int has_common_channel(struct Client *client1, struct Client *client2); + extern struct Channel *find_bannickchange_channel(struct Client *client_p); +extern struct Channel *find_nonickchange_channel(struct Client *client_p); + extern void check_spambot_warning(struct Client *source_p, const char *name); extern void check_splitmode(void *); @@ -268,5 +278,9 @@ extern int match_extban(const char *banstr, struct Client *client_p, struct Chan extern int valid_extban(const char *banstr, struct Client *client_p, struct Channel *chptr, long mode_type); const char * get_extban_string(void); +extern struct Channel * check_forward(struct Client *source_p, struct Channel *chptr, char *key); +extern void user_join(struct Client * client_p, struct Client * source_p, const char * channels, const char * keys); +extern void do_join_0(struct Client *client_p, struct Client *source_p); +extern int check_channel_name_loc(struct Client *source_p, const char *name); #endif /* INCLUDED_channel_h */