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.
29 /** Contains all feature settings for ircu.
30 * For documentation of each, see doc/readme.features.
38 FEAT_HAS_FERGUSON_FLUSHER,
47 FEAT_WALLOPS_OPER_ONLY,
50 FEAT_DEFAULT_LIST_PARAM,
51 FEAT_NICKNAMEHISTORYLENGTH,
55 FEAT_CONNEXIT_NOTICES,
60 /* features that probably should not be touched */
61 FEAT_KILLCHASETIMELIMIT,
62 FEAT_MAXCHANNELSPERUSER,
68 FEAT_HANGONRETRYDELAY,
72 FEAT_CONNECTFREQUENCY,
73 FEAT_DEFAULTMAXSENDQLENGTH,
74 FEAT_GLINEMAXUSERCOUNT,
77 FEAT_IPCHECK_CLONE_LIMIT,
78 FEAT_IPCHECK_CLONE_PERIOD,
79 FEAT_IPCHECK_CLONE_DELAY,
81 /* Some misc. default paths */
86 /* Networking features */
90 FEAT_IRCD_RES_RETRIES,
91 FEAT_IRCD_RES_TIMEOUT,
93 FEAT_ANNOUNCE_INVITES,
95 /* features that affect all operators */
98 /* HEAD_IN_SAND Features */
100 FEAT_HIS_SNOTICES_OPER_ONLY,
101 FEAT_HIS_DEBUG_OPER_ONLY,
134 FEAT_HIS_WHOIS_SERVERNAME,
135 FEAT_HIS_WHOIS_IDLETIME,
136 FEAT_HIS_WHOIS_LOCALCHAN,
137 FEAT_HIS_WHO_SERVERNAME,
138 FEAT_HIS_WHO_HOPCOUNT,
148 /* Misc. random stuff */
155 extern void feature_init(void);
157 extern int feature_set(struct Client* from, const char* const* fields,
159 extern int feature_reset(struct Client* from, const char* const* fields,
161 extern int feature_get(struct Client* from, const char* const* fields,
164 extern void feature_unmark(void);
165 extern void feature_mark(void);
167 extern void feature_report(struct Client* to, const struct StatDesc* sd,
170 extern int feature_int(enum Feature feat);
171 extern int feature_bool(enum Feature feat);
172 extern const char *feature_str(enum Feature feat);
174 #endif /* INCLUDED_features_h */