File: flood.h

package info (click to toggle)
ircii-pana 1%3A1.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,048 kB
  • ctags: 14,567
  • sloc: ansic: 130,654; sql: 6,041; makefile: 4,313; cpp: 1,270; tcl: 1,230; sh: 638; java: 151
file content (33 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * flood.h: header file for flood.c
 *
 * @(#)$Id: flood.h,v 1.1.1.1 2003/04/11 01:09:07 dan Exp $
 */

#ifndef __flood_h_
#define __flood_h_

	int	BX_check_flooding (char *, int, char *, char *);
	int	BX_is_other_flood (ChannelList *, NickList *, int, int *);
	int	BX_flood_prot (char *, char *, char *, int, int, char *);
	void	clean_flood_list (void);		

#define MSG_FLOOD 	0x0001
#define PUBLIC_FLOOD 	0x0002
#define NOTICE_FLOOD	0x0004
#define WALL_FLOOD	0x0008
#define WALLOP_FLOOD	0x0010
#define CTCP_FLOOD	0x0020
#define INVITE_FLOOD	0x0040
#define CDCC_FLOOD	0x0080
#define CTCP_ACTION_FLOOD	0x0100
#define NICK_FLOOD	0x0200
#define DEOP_FLOOD	0x0400
#define KICK_FLOOD	0x0800
#define JOIN_FLOOD	0x1000

#include "hash.h"
#define FLOOD_HASHSIZE 31
extern HashEntry no_flood_list[FLOOD_HASHSIZE];

#endif /* __flood_h_ */