Add new feature FEAT_HIS_WHOIS_LOCALCHAN.
[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 struct StatDesc;
26
27 enum Feature {
28   /* Misc. features */
29   FEAT_LOG,
30   FEAT_DOMAINNAME,
31   FEAT_RELIABLE_CLOCK,
32   FEAT_BUFFERPOOL,
33   FEAT_HAS_FERGUSON_FLUSHER,
34   FEAT_CLIENT_FLOOD,
35   FEAT_SERVER_PORT,
36   FEAT_NODEFAULTMOTD,
37   FEAT_MOTD_BANNER,
38   FEAT_PROVIDER,
39   FEAT_KILL_IPMISMATCH,
40   FEAT_IDLE_FROM_MSG,
41   FEAT_HUB,
42   FEAT_WALLOPS_OPER_ONLY,
43   FEAT_NODNS,
44   FEAT_RANDOM_SEED,
45   FEAT_DEFAULT_LIST_PARAM,
46   FEAT_NICKNAMEHISTORYLENGTH,
47   FEAT_HOST_HIDING,
48   FEAT_HIDDEN_HOST,
49   FEAT_HIDDEN_IP,
50   FEAT_CONNEXIT_NOTICES,
51   FEAT_OPLEVELS,
52   FEAT_LOCAL_CHANNELS,
53   FEAT_TOPIC_BURST,
54
55   /* features that probably should not be touched */
56   FEAT_KILLCHASETIMELIMIT,
57   FEAT_MAXCHANNELSPERUSER,
58   FEAT_NICKLEN,
59   FEAT_AVBANLEN,
60   FEAT_MAXBANS,
61   FEAT_MAXSILES,
62   FEAT_HANGONGOODLINK,
63   FEAT_HANGONRETRYDELAY,
64   FEAT_CONNECTTIMEOUT,
65   FEAT_MAXIMUM_LINKS,
66   FEAT_PINGFREQUENCY,
67   FEAT_CONNECTFREQUENCY,
68   FEAT_DEFAULTMAXSENDQLENGTH,
69   FEAT_GLINEMAXUSERCOUNT,
70   FEAT_SOCKSENDBUF,
71   FEAT_SOCKRECVBUF,
72   FEAT_IPCHECK_CLONE_LIMIT,
73   FEAT_IPCHECK_CLONE_PERIOD,
74   FEAT_IPCHECK_CLONE_DELAY,
75
76   /* Some misc. default paths */
77   FEAT_MPATH,
78   FEAT_RPATH,
79   FEAT_PPATH,
80
81   /* Networking features */
82   FEAT_VIRTUAL_HOST,
83   FEAT_TOS_SERVER,
84   FEAT_TOS_CLIENT,
85   FEAT_POLLS_PER_LOOP,
86   FEAT_IRCD_RES_RETRIES,
87   FEAT_IRCD_RES_TIMEOUT,
88   FEAT_AUTH_TIMEOUT,
89   FEAT_ANNOUNCE_INVITES,
90
91   /* features that affect all operators */
92   FEAT_CONFIG_OPERCMDS,
93
94   /* HEAD_IN_SAND Features */
95   FEAT_HIS_SNOTICES,
96   FEAT_HIS_SNOTICES_OPER_ONLY,
97   FEAT_HIS_DEBUG_OPER_ONLY,
98   FEAT_HIS_WALLOPS,
99   FEAT_HIS_MAP,
100   FEAT_HIS_LINKS,
101   FEAT_HIS_TRACE,
102   FEAT_HIS_STATS_l,
103   FEAT_HIS_STATS_L,
104   FEAT_HIS_STATS_a,
105   FEAT_HIS_STATS_c,
106   FEAT_HIS_STATS_g,
107   FEAT_HIS_STATS_h,
108   FEAT_HIS_STATS_k,
109   FEAT_HIS_STATS_f,
110   FEAT_HIS_STATS_i,
111   FEAT_HIS_STATS_j,
112   FEAT_HIS_STATS_M,
113   FEAT_HIS_STATS_m,
114   FEAT_HIS_STATS_o,
115   FEAT_HIS_STATS_p,
116   FEAT_HIS_STATS_q,
117   FEAT_HIS_STATS_R,
118   FEAT_HIS_STATS_r,
119   FEAT_HIS_STATS_d,
120   FEAT_HIS_STATS_e,
121   FEAT_HIS_STATS_t,
122   FEAT_HIS_STATS_T,
123   FEAT_HIS_STATS_u,
124   FEAT_HIS_STATS_U,
125   FEAT_HIS_STATS_v,
126   FEAT_HIS_STATS_w,
127   FEAT_HIS_STATS_x,
128   FEAT_HIS_STATS_y,
129   FEAT_HIS_STATS_z,
130   FEAT_HIS_WHOIS_SERVERNAME,
131   FEAT_HIS_WHOIS_IDLETIME,
132   FEAT_HIS_WHOIS_LOCALCHAN,
133   FEAT_HIS_WHO_SERVERNAME,
134   FEAT_HIS_WHO_HOPCOUNT,
135   FEAT_HIS_BANWHO,
136   FEAT_HIS_KILLWHO,
137   FEAT_HIS_REWRITE,
138   FEAT_HIS_REMOTE,
139   FEAT_HIS_NETSPLIT,
140   FEAT_HIS_SERVERNAME,
141   FEAT_HIS_SERVERINFO,
142   FEAT_HIS_URLSERVERS,
143
144   /* Misc. random stuff */
145   FEAT_NETWORK,
146   FEAT_URL_CLIENTS,
147
148   FEAT_LAST_F
149 };
150
151 extern void feature_init(void);
152
153 extern int feature_set(struct Client* from, const char* const* fields,
154                        int count);
155 extern int feature_reset(struct Client* from, const char* const* fields,
156                          int count);
157 extern int feature_get(struct Client* from, const char* const* fields,
158                        int count);
159
160 extern void feature_unmark(void);
161 extern void feature_mark(void);
162
163 extern void feature_report(struct Client* to, struct StatDesc* sd, int stat,
164                            char* param);
165
166 extern int feature_int(enum Feature feat);
167 extern int feature_bool(enum Feature feat);
168 extern const char *feature_str(enum Feature feat);
169
170 #endif /* INCLUDED_features_h */