]> jfr.im git - solanum.git/blobdiff - include/channel.h
refuse opers setting an invalidly long k-line reason
[solanum.git] / include / channel.h
index bb1da83f3a504bc0ad63fa008d92ec6b2a52547e..19ca532fe8fcd828a2aeb037386b12f1f5eda898 100644 (file)
@@ -32,6 +32,7 @@
 #define MAXMODEPARAMSSERV 10
 
 #include <setup.h>
+#include "hook.h"
 
 struct Client;
 
@@ -121,7 +122,7 @@ struct ChModeChange
        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
@@ -136,7 +137,7 @@ enum chm_flags
 
 struct ChannelMode
 {
-       ChannelModeFunc set_func;
+       ChannelModeFunc *set_func;
        long mode_type;
        enum chm_flags flags;
 };
@@ -248,7 +249,7 @@ extern void destroy_channel(struct Channel *);
 
 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,