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.
32 FEAT_HAS_FERGUSON_FLUSHER,
40 FEAT_WALLOPS_OPER_ONLY,
43 FEAT_DEFAULT_LIST_PARAM,
44 FEAT_NICKNAMEHISTORYLENGTH,
49 /* features that probably should not be touched */
50 FEAT_KILLCHASETIMELIMIT,
51 FEAT_MAXCHANNELSPERUSER,
56 FEAT_HANGONRETRYDELAY,
61 FEAT_CONNECTFREQUENCY,
62 FEAT_DEFAULTMAXSENDQLENGTH,
63 FEAT_GLINEMAXUSERCOUNT,
65 /* Some misc. default paths */
70 /* Networking features */
76 /* features that affect all operators */
77 FEAT_CRYPT_OPER_PASSWORD,
78 FEAT_OPER_NO_CHAN_LIMIT,
80 FEAT_OPER_WALK_THROUGH_LMODES,
81 FEAT_NO_OPER_DEOP_LCHAN,
82 FEAT_SHOW_INVISIBLE_USERS,
83 FEAT_SHOW_ALL_INVISIBLE_USERS,
84 FEAT_UNLIMIT_OPER_QUERY,
89 /* features that affect global opers on this server */
103 FEAT_OPERS_SEE_IN_SECRET_CHANNELS,
104 FEAT_OPER_WIDE_GLINE,
107 /* features that affect local opers on this server */
117 FEAT_LOCOP_SEE_IN_SECRET_CHANNELS,
118 FEAT_LOCOP_WIDE_GLINE,
119 FEAT_LOCOP_LIST_CHAN,
124 extern void feature_init(void);
126 extern int feature_set(struct Client* from, const char* const* fields,
128 extern int feature_reset(struct Client* from, const char* const* fields,
130 extern int feature_get(struct Client* from, const char* const* fields,
133 extern void feature_unmark(void);
134 extern void feature_mark(void);
136 extern void feature_report(struct Client* to);
138 extern int feature_int(enum Feature feat);
139 extern int feature_bool(enum Feature feat);
140 extern const char *feature_str(enum Feature feat);
142 #endif /* INCLUDED_features_h */