Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / ircd_features.h
1 #ifndef INCLUDED_features_h
2 #define INCLUDED_features_h
3 /*
4  * IRC - Internet Relay Chat, include/features.h
5  * Copyright (C) 2000 Kevin L. Mitchell <klmitch@mit.edu>
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, or (at your option)
10  * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
20  *
21  * $Id$
22  */
23
24 struct Client;
25
26 enum Feature {
27   FEAT_LOG,
28
29   FEAT_OPER_NO_CHAN_LIMIT,
30   FEAT_OPER_MODE_LCHAN,
31   FEAT_OPER_WALK_THROUGH_LMODES,
32   FEAT_NO_OPER_DEOP_LCHAN,
33   FEAT_SHOW_INVISIBLE_USERS,
34   FEAT_SHOW_ALL_INVISIBLE_USERS,
35   FEAT_UNLIMIT_OPER_QUERY,
36   FEAT_LOCAL_KILL_ONLY,
37   FEAT_TOS_SERVER,
38   FEAT_TOS_CLIENT,
39   FEAT_CONFIG_OPERCMDS,
40
41   FEAT_OPER_KILL,
42   FEAT_OPER_REHASH,
43   FEAT_OPER_RESTART,
44   FEAT_OPER_DIE,
45   FEAT_OPER_GLINE,
46   FEAT_OPER_LGLINE,
47   FEAT_OPER_JUPE,
48   FEAT_OPER_LJUPE,
49   FEAT_OPER_OPMODE,
50   FEAT_OPER_LOPMODE,
51   FEAT_OPER_BADCHAN,
52   FEAT_OPER_LBADCHAN,
53   FEAT_OPERS_SEE_IN_SECRET_CHANNELS,
54
55   FEAT_LOCOP_KILL,
56   FEAT_LOCOP_REHASH,
57   FEAT_LOCOP_RESTART,
58   FEAT_LOCOP_DIE,
59   FEAT_LOCOP_LGLINE,
60   FEAT_LOCOP_LJUPE,
61   FEAT_LOCOP_LOPMODE,
62   FEAT_LOCOP_LBADCHAN,
63   FEAT_LOCOP_SEE_IN_SECRET_CHANNELS,
64
65   FEAT_LAST_F
66 };
67
68 extern int feature_set(struct Client* from, const char* const* fields,
69                        int count);
70 extern int feature_reset(struct Client* from, const char* const* fields,
71                          int count);
72 extern int feature_get(struct Client* from, const char* const* fields,
73                        int count);
74
75 extern void feature_unmark(void);
76 extern void feature_mark(void);
77
78 extern void feature_report(struct Client* to);
79
80 extern int feature_int(enum Feature feat);
81 extern int feature_bool(enum Feature feat);
82 extern const char *feature_str(enum Feature feat);
83
84 #endif /* INCLUDED_features_h */