]> jfr.im git - irc/rqf/shadowircd.git/blob - include/snomask.h
hunt_server: Disallow wildcarded nicknames.
[irc/rqf/shadowircd.git] / include / snomask.h
1 /*
2 * charybdis: An advanced ircd.
3 * snomask.h: Management for user server-notice masks.
4 *
5 * Copyright (c) 2006 William Pitcock <nenolod@nenolod.net>
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are
9 * met:
10 *
11 * 1. Redistributions of source code must retain the above copyright notice,
12 * this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 *
18 * 3. The name of the author may not be used to endorse or promote products
19 * derived from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $Id$
34 */
35
36 #ifndef SNOMASK_H
37 #define SNOMASK_H
38
39 #include "client.h"
40
41 #define SNO_ADD 1
42 #define SNO_DEL 2
43
44 #define SNO_CCONNEXT 0x00000001
45 #define SNO_BOTS 0x00000002
46 #define SNO_CCONN 0x00000004
47 #define SNO_DEBUG 0x00000008
48 #define SNO_FULL 0x00000010
49 #define SNO_SKILL 0x00000020
50 #define SNO_NCHANGE 0x00000040
51 #define SNO_REJ 0x00000080
52 #define SNO_GENERAL 0x00000100
53 #define SNO_UNAUTH 0x00000200
54 #define SNO_EXTERNAL 0x00000400
55 #define SNO_SPY 0x00000800
56 #define SNO_OPERSPY 0x00001000
57
58 char *construct_snobuf(unsigned int val);
59 unsigned int parse_snobuf_to_mask(unsigned int val, const char *sno);
60 unsigned int find_snomask_slot(void);
61
62 extern int snomask_modes[];
63
64 #endif