| 1 |
db |
91 |
/* |
| 2 |
|
|
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
| 3 |
|
|
* s_conf.h: A header for the configuration functions. |
| 4 |
|
|
* |
| 5 |
|
|
* Copyright (C) 2005 by the past and present ircd coders, and others. |
| 6 |
|
|
* |
| 7 |
|
|
* This program is free software; you can redistribute it and/or modify |
| 8 |
|
|
* it under the terms of the GNU General Public License as published by |
| 9 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
| 10 |
|
|
* (at your option) any later version. |
| 11 |
|
|
* |
| 12 |
|
|
* This program is distributed in the hope that it will be useful, |
| 13 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
|
|
* GNU General Public License for more details. |
| 16 |
|
|
* |
| 17 |
|
|
* You should have received a copy of the GNU General Public License |
| 18 |
|
|
* along with this program; if not, write to the Free Software |
| 19 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
| 20 |
|
|
* USA |
| 21 |
|
|
* |
| 22 |
|
|
* $Id$ |
| 23 |
|
|
*/ |
| 24 |
|
|
|
| 25 |
|
|
#ifndef INCLUDED_parse_aline_h |
| 26 |
|
|
#define INCLUDED_parse_aline_h |
| 27 |
|
|
#include "setup.h" |
| 28 |
|
|
|
| 29 |
|
|
extern dlink_list rxconf_items; |
| 30 |
|
|
extern dlink_list rkconf_items; |
| 31 |
|
|
extern dlink_list temporary_klines; |
| 32 |
|
|
extern dlink_list temporary_dlines; |
| 33 |
|
|
extern dlink_list temporary_glines; |
| 34 |
|
|
extern dlink_list temporary_xlines; |
| 35 |
|
|
extern dlink_list temporary_rxlines; |
| 36 |
|
|
extern dlink_list temporary_rklines; |
| 37 |
|
|
|
| 38 |
|
|
extern void cluster_a_line(struct Client *, |
| 39 |
|
|
const char *, int, int, const char *,...); |
| 40 |
|
|
extern int valid_wild_card(struct Client *, int, int, ...); |
| 41 |
|
|
|
| 42 |
|
|
#define CLEANUP_TKLINES_TIME 60 |
| 43 |
|
|
#define TK_SECONDS 0 |
| 44 |
|
|
#define TK_MINUTES 1 |
| 45 |
|
|
extern time_t valid_tkline(char *, int); |
| 46 |
|
|
|
| 47 |
|
|
#define AWILD 0x1 /* check wild cards */ |
| 48 |
|
|
#define NOUSERLOOKUP 0x2 /* Don't lookup the user@host on /rkline nick */ |
| 49 |
|
|
extern int parse_aline(const char *, struct Client *, int, char **, |
| 50 |
|
|
int, char **, char **, time_t *, char **, char **); |
| 51 |
|
|
extern int valid_comment(struct Client *, char *, int); |
| 52 |
|
|
extern struct AccessItem *find_regexp_kline(const char *[]); |
| 53 |
|
|
|
| 54 |
|
|
extern void cleanup_tklines(void *); |
| 55 |
|
|
extern void add_temp_line(struct ConfItem *); |
| 56 |
|
|
#endif /* INCLUDED_parse_aline_h */ |