Support showing join-delayed users in /WHO output.
[ircu2.10.12-pk.git] / include / ircd_features.h
index 50ac4c4276ccfec573f1aed58a81d2d57b4bf2a6..e452f62da39ea44a1031a2fb5889f89e363c3878 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * $Id$
+ */
+/** @file
+ * @brief Public interfaces and declarations for dealing with configurable features.
+ * @version $Id$
  */
 
 struct Client;
 struct StatDesc;
 
+extern struct Client his;
+
+/** Contains all feature settings for ircu.
+ * For documentation of each, see doc/readme.features.
+ */
 enum Feature {
   /* Misc. features */
   FEAT_LOG,
@@ -62,7 +69,6 @@ enum Feature {
   FEAT_HANGONGOODLINK,
   FEAT_HANGONRETRYDELAY,
   FEAT_CONNECTTIMEOUT,
-  FEAT_TIMESEC,
   FEAT_MAXIMUM_LINKS,
   FEAT_PINGFREQUENCY,
   FEAT_CONNECTFREQUENCY,
@@ -73,6 +79,7 @@ enum Feature {
   FEAT_IPCHECK_CLONE_LIMIT,
   FEAT_IPCHECK_CLONE_PERIOD,
   FEAT_IPCHECK_CLONE_DELAY,
+  FEAT_CHANNELLEN,
 
   /* Some misc. default paths */
   FEAT_MPATH,
@@ -80,7 +87,6 @@ enum Feature {
   FEAT_PPATH,
 
   /* Networking features */
-  FEAT_VIRTUAL_HOST,
   FEAT_TOS_SERVER,
   FEAT_TOS_CLIENT,
   FEAT_POLLS_PER_LOOP,
@@ -90,28 +96,28 @@ enum Feature {
   FEAT_ANNOUNCE_INVITES,
 
   /* features that affect all operators */
-  FEAT_CRYPT_OPER_PASSWORD,
   FEAT_CONFIG_OPERCMDS,
-  FEAT_LIST_CHAN,
 
   /* HEAD_IN_SAND Features */
   FEAT_HIS_SNOTICES,
   FEAT_HIS_SNOTICES_OPER_ONLY,
-  FEAT_HIS_DESYNCS,
   FEAT_HIS_DEBUG_OPER_ONLY,
   FEAT_HIS_WALLOPS,
   FEAT_HIS_MAP,
   FEAT_HIS_LINKS,
   FEAT_HIS_TRACE,
-  FEAT_HIS_STATS_l,
-  FEAT_HIS_STATS_L,
+  FEAT_HIS_STATS_a,
   FEAT_HIS_STATS_c,
-  FEAT_HIS_STATS_g,
-  FEAT_HIS_STATS_h,
-  FEAT_HIS_STATS_k,
+  FEAT_HIS_STATS_d,
+  FEAT_HIS_STATS_e,
   FEAT_HIS_STATS_f,
+  FEAT_HIS_STATS_g,
   FEAT_HIS_STATS_i,
   FEAT_HIS_STATS_j,
+  FEAT_HIS_STATS_J,
+  FEAT_HIS_STATS_k,
+  FEAT_HIS_STATS_l,
+  FEAT_HIS_STATS_L,
   FEAT_HIS_STATS_M,
   FEAT_HIS_STATS_m,
   FEAT_HIS_STATS_o,
@@ -119,8 +125,6 @@ enum Feature {
   FEAT_HIS_STATS_q,
   FEAT_HIS_STATS_R,
   FEAT_HIS_STATS_r,
-  FEAT_HIS_STATS_d,
-  FEAT_HIS_STATS_e,
   FEAT_HIS_STATS_t,
   FEAT_HIS_STATS_T,
   FEAT_HIS_STATS_u,
@@ -132,6 +136,7 @@ enum Feature {
   FEAT_HIS_STATS_z,
   FEAT_HIS_WHOIS_SERVERNAME,
   FEAT_HIS_WHOIS_IDLETIME,
+  FEAT_HIS_WHOIS_LOCALCHAN,
   FEAT_HIS_WHO_SERVERNAME,
   FEAT_HIS_WHO_HOPCOUNT,
   FEAT_HIS_BANWHO,
@@ -162,7 +167,7 @@ extern int feature_get(struct Client* from, const char* const* fields,
 extern void feature_unmark(void);
 extern void feature_mark(void);
 
-extern void feature_report(struct Client* to, struct StatDesc* sd, int stat,
+extern void feature_report(struct Client* to, const struct StatDesc* sd,
                            char* param);
 
 extern int feature_int(enum Feature feat);