1 |
/* |
2 |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
3 |
* resv.h: A header for the RESV functions. |
4 |
* |
5 |
* Copyright (C) 2002 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_resv_h |
26 |
#define INCLUDED_resv_h |
27 |
|
28 |
struct ResvChannel |
29 |
{ |
30 |
dlink_node node; |
31 |
struct ResvChannel *hnext; |
32 |
time_t hold; /* Hold action until this time (calendar time) */ |
33 |
/* +1 for \0 */ |
34 |
char name[CHANNELLEN + 1]; |
35 |
char *reason; |
36 |
int conf; /* 1 if set from ircd.conf, 0 if from elsewhere */ |
37 |
}; |
38 |
|
39 |
extern dlink_list nresv_items; |
40 |
extern dlink_list resv_channel_list; |
41 |
|
42 |
extern struct ConfItem *create_channel_resv(char *, char *, int); |
43 |
extern struct ConfItem *create_nick_resv(char *, char *, int); |
44 |
|
45 |
extern int delete_channel_resv(struct ResvChannel *); |
46 |
|
47 |
extern void clear_conf_resv(void); |
48 |
extern void report_resv(struct Client *); |
49 |
|
50 |
extern int valid_wild_card_simple(const char *); |
51 |
extern struct ResvChannel *match_find_resv(const char *); |
52 |
#endif /* INCLUDED_resv_h */ |