ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.0.x/include/resv.h
Revision: 1685
Committed: Wed Dec 19 20:24:52 2012 UTC (13 years, 9 months ago) by michael
Content type: text/x-chdr
File size: 1786 byte(s)
Log Message:
- STATS q|Q now shows how many times a resv{} block has been matched.
  (Just like STATS x|X)

File Contents

# Content
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 int count; /* How many times this item has been matched */
38 };
39
40 extern dlink_list nresv_items;
41 extern dlink_list resv_channel_list;
42
43 extern struct ConfItem *create_channel_resv(char *, char *, int);
44 extern struct ConfItem *create_nick_resv(char *, char *, int);
45
46 extern int delete_channel_resv(struct ResvChannel *);
47
48 extern void clear_conf_resv(void);
49 extern void report_resv(struct Client *);
50
51 extern int valid_wild_card_simple(const char *);
52 extern struct ResvChannel *match_find_resv(const char *);
53 #endif /* INCLUDED_resv_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision