X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/473d0842db706ff65bb1d959d974751904bc8621..6795400d0a60f52576c859eedbccf9fb6a0ede13:/include/channel.h diff --git a/include/channel.h b/include/channel.h index 6a0a56a..3a74689 100644 --- a/include/channel.h +++ b/include/channel.h @@ -127,11 +127,13 @@ struct ChCapCombo int cap_no; }; +typedef void (*ChannelModeFunc)(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); + struct ChannelMode { - void (*set_func) (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); + ChannelModeFunc set_func; long mode_type; }; @@ -277,6 +279,8 @@ extern void unset_chcap_usage_counts(struct Client *serv_p); extern void send_cap_mode_changes(struct Client *client_p, struct Client *source_p, struct Channel *chptr, struct ChModeChange foo[], int); +void resv_chan_forcepart(const char *name, const char *reason, int temp_time); + extern void set_channel_mode(struct Client *client_p, struct Client *source_p, struct Channel *chptr, struct membership *msptr, int parc, const char *parv[]);