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.
22 * @brief Public interfaces and declarations for dealing with configurable features.
23 * @version $Id: ircd_features.h 1774 2007-03-17 03:48:49Z klmitch $
29 extern struct Client his;
31 /** Contains all feature settings for ircu.
32 * For documentation of each, see doc/readme.features.
40 FEAT_HAS_FERGUSON_FLUSHER,
49 FEAT_WALLOPS_OPER_ONLY,
52 FEAT_DEFAULT_LIST_PARAM,
53 FEAT_NICKNAMEHISTORYLENGTH,
57 FEAT_CONNEXIT_NOTICES,
73 /* features that probably should not be touched */
74 FEAT_KILLCHASETIMELIMIT,
75 FEAT_MAXCHANNELSPERUSER,
81 FEAT_HANGONRETRYDELAY,
85 FEAT_CONNECTFREQUENCY,
86 FEAT_DEFAULTMAXSENDQLENGTH,
87 FEAT_GLINEMAXUSERCOUNT,
90 FEAT_IPCHECK_CLONE_LIMIT,
91 FEAT_IPCHECK_CLONE_PERIOD,
92 FEAT_IPCHECK_CLONE_DELAY,
95 /* Some misc. default paths */
100 /* Networking features */
104 FEAT_IRCD_RES_RETRIES,
105 FEAT_IRCD_RES_TIMEOUT,
107 FEAT_ANNOUNCE_INVITES,
109 /* features that affect all operators */
110 FEAT_CONFIG_OPERCMDS,
112 /* HEAD_IN_SAND Features */
114 FEAT_HIS_SNOTICES_OPER_ONLY,
115 FEAT_HIS_DEBUG_OPER_ONLY,
148 FEAT_HIS_STATS_IAUTH,
149 FEAT_HIS_WHOIS_SERVERNAME,
150 FEAT_HIS_WHOIS_IDLETIME,
151 FEAT_HIS_WHOIS_LOCALCHAN,
152 FEAT_HIS_WHO_SERVERNAME,
153 FEAT_HIS_WHO_HOPCOUNT,
164 /* Misc. random stuff */
169 FEAT_UNKNOWN_CMD_ENABLE,
170 FEAT_UNKNOWN_CMD_TARGET,
171 FEAT_CHMODE_A_ENABLE,
172 FEAT_CHMODE_A_TARGET,
173 FEAT_CHMODE_F_ENABLE,
178 extern void feature_init(void);
180 extern int feature_set(struct Client* from, const char* const* fields,
182 extern int feature_reset(struct Client* from, const char* const* fields,
184 extern int feature_get(struct Client* from, const char* const* fields,
187 extern void feature_unmark(void);
188 extern void feature_mark(void);
190 extern void feature_report(struct Client* to, const struct StatDesc* sd,
193 extern int feature_int(enum Feature feat);
194 extern int feature_bool(enum Feature feat);
195 extern const char *feature_str(enum Feature feat);
197 #endif /* INCLUDED_features_h */