#define MAXMODEPARAMSSERV 10
#include <setup.h>
+#include "hook.h"
struct Client;
int mems;
};
-typedef void (*ChannelModeFunc)(struct Client *source_p, struct Channel *chptr,
+typedef void ChannelModeFunc(struct Client *source_p, struct Channel *chptr,
int alevel, const char *arg, int *errors, int dir, char c, long mode_type);
enum chm_flags
struct ChannelMode
{
- ChannelModeFunc set_func;
+ ChannelModeFunc *set_func;
long mode_type;
enum chm_flags flags;
};
extern int can_send(struct Channel *chptr, struct Client *who,
struct membership *);
-extern bool flood_attack_channel(int p_or_n, struct Client *source_p,
+extern bool flood_attack_channel(enum message_type msgtype, struct Client *source_p,
struct Channel *chptr, char *chname);
struct matchset;
extern int is_banned(struct Channel *chptr, struct Client *who,