-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblsb.h
More file actions
73 lines (65 loc) · 2.02 KB
/
blsb.h
File metadata and controls
73 lines (65 loc) · 2.02 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* NeoStats - IRC Statistical Services
** Copyright (c) 1999-2005 Adam Rutter, Justin Hammond, Mark Hetherington
** http://www.neostats.net/
**
** Additions (v0.1b1) Copyright (c) 2014 DarkSpirit IRC Network
** http://www.darkspirit.org/
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
** USA
**
** NetStats CVS Identification
** $Id: blsb.h 39 2005-12-11 14:45:22Z DNB $
*/
#ifndef BLSB_H
#define BLSB_H
#include MODULECONFIG
typedef enum BL_LOOKUP_TYPE
{
BL_LOOKUP_TYPE_MIN = 0,
BL_LOOKUP_TXT_RECORD,
BL_LOOKUP_A_RECORD,
BL_LOOKUP_TYPE_MAX
}BL_LOOKUP_TYPE;
typedef struct dom_list {
char name[BUFSIZE];
char domain[BUFSIZE];
BL_LOOKUP_TYPE type;
char msg[BUFSIZE];
int noban;
} dom_list;
typedef struct scanclient {
Client *user;
/* HACK: prevents an use-after-free of user -- whatever, also, the length
should not be static. */
char nick[30];
dom_list *domain;
Client *check;
char reverseip[HOSTIPLEN];
char ip[HOSTIPLEN];
char *lookup;
int banned;
} scanclient;
/* blsb_help.c */
extern const char *blsb_about[];
extern const char *blsb_help_add[];
extern const char *blsb_help_del[];
extern const char *blsb_help_list[];
extern const char *blsb_help_check[];
extern const char *blsb_help_set_akill[];
extern const char *blsb_help_set_akilltime[];
extern const char *blsb_help_set_verbose[];
extern const char *blsb_help_set_exclusions[];
#endif /* BLSB_H */