1 /*
2  * flood.h: header file for flood.c
3  *
4  * @(#)$Id: flood.h 3 2008-02-25 09:49:14Z keaston $
5  */
6 
7 #ifndef __flood_h_
8 #define __flood_h_
9 
10 	int	BX_check_flooding (char *, int, char *, char *);
11 	int	BX_is_other_flood (ChannelList *, NickList *, int, int *);
12 	int	BX_flood_prot (char *, char *, char *, int, int, char *);
13 	void	clean_flood_list (void);
14 
15 #define MSG_FLOOD 	0x0001
16 #define PUBLIC_FLOOD 	0x0002
17 #define NOTICE_FLOOD	0x0004
18 #define WALL_FLOOD	0x0008
19 #define WALLOP_FLOOD	0x0010
20 #define CTCP_FLOOD	0x0020
21 #define INVITE_FLOOD	0x0040
22 #define CDCC_FLOOD	0x0080
23 #define CTCP_ACTION_FLOOD	0x0100
24 #define NICK_FLOOD	0x0200
25 #define DEOP_FLOOD	0x0400
26 #define KICK_FLOOD	0x0800
27 #define JOIN_FLOOD	0x1000
28 
29 #include "hash.h"
30 #define FLOOD_HASHSIZE 31
31 extern HashEntry no_flood_list[FLOOD_HASHSIZE];
32 
33 #endif /* __flood_h_ */
34