1 #ifndef INCLUDED_features_h
2 #define INCLUDED_features_h
4 * IRC - Internet Relay Chat, include/features.h
5 * Copyright (C) 2000 Kevin L. Mitchell <klmitch@mit.edu>
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)
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.
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.
33 FEAT_HAS_FERGUSON_FLUSHER,
42 FEAT_WALLOPS_OPER_ONLY,
45 FEAT_DEFAULT_LIST_PARAM,
46 FEAT_NICKNAMEHISTORYLENGTH,
50 FEAT_CONNEXIT_NOTICES,
55 /* features that probably should not be touched */
56 FEAT_KILLCHASETIMELIMIT,
57 FEAT_MAXCHANNELSPERUSER,
63 FEAT_HANGONRETRYDELAY,
68 FEAT_CONNECTFREQUENCY,
69 FEAT_DEFAULTMAXSENDQLENGTH,
70 FEAT_GLINEMAXUSERCOUNT,
73 FEAT_IPCHECK_CLONE_LIMIT,
74 FEAT_IPCHECK_CLONE_PERIOD,
75 FEAT_IPCHECK_CLONE_DELAY,
77 /* Some misc. default paths */
82 /* Networking features */
87 FEAT_IRCD_RES_RETRIES,
88 FEAT_IRCD_RES_TIMEOUT,
91 /* features that affect all operators */
92 FEAT_CRYPT_OPER_PASSWORD,
93 FEAT_OPER_NO_CHAN_LIMIT,
95 FEAT_OPER_WALK_THROUGH_LMODES,
96 FEAT_NO_OPER_DEOP_LCHAN,
97 FEAT_SHOW_INVISIBLE_USERS,
98 FEAT_SHOW_ALL_INVISIBLE_USERS,
99 FEAT_UNLIMIT_OPER_QUERY,
100 FEAT_LOCAL_KILL_ONLY,
101 FEAT_CONFIG_OPERCMDS,
104 /* features that affect global opers on this server */
115 FEAT_OPER_FORCE_OPMODE,
116 FEAT_OPER_FORCE_LOPMODE,
120 FEAT_OPERS_SEE_IN_SECRET_CHANNELS,
121 FEAT_OPER_WIDE_GLINE,
124 /* features that affect local opers on this server */
132 FEAT_LOCOP_FORCE_LOPMODE,
135 FEAT_LOCOP_SEE_IN_SECRET_CHANNELS,
136 FEAT_LOCOP_WIDE_GLINE,
137 FEAT_LOCOP_LIST_CHAN,
139 /* HEAD_IN_SAND Features */
141 FEAT_HIS_SNOTICES_OPER_ONLY,
143 FEAT_HIS_DEBUG_OPER_ONLY,
174 FEAT_HIS_WHOIS_SERVERNAME,
175 FEAT_HIS_WHOIS_IDLETIME,
176 FEAT_HIS_WHO_SERVERNAME,
177 FEAT_HIS_WHO_HOPCOUNT,
187 /* Misc. random stuff */
194 extern void feature_init(void);
196 extern int feature_set(struct Client* from, const char* const* fields,
198 extern int feature_reset(struct Client* from, const char* const* fields,
200 extern int feature_get(struct Client* from, const char* const* fields,
203 extern void feature_unmark(void);
204 extern void feature_mark(void);
206 extern void feature_report(struct Client* to, struct StatDesc* sd, int stat,
209 extern int feature_int(enum Feature feat);
210 extern int feature_bool(enum Feature feat);
211 extern const char *feature_str(enum Feature feat);
213 #endif /* INCLUDED_features_h */