Use HIS_SERVERNAME instead of cli_name(&me) for a variety of
[ircu2.10.12-pk.git] / include / ircd_features.h
index dd72b3e0165405f03f18d2e9edb76115b76d8f37..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,
@@ -72,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,
@@ -79,7 +87,6 @@ enum Feature {
   FEAT_PPATH,
 
   /* Networking features */
-  FEAT_VIRTUAL_HOST,
   FEAT_TOS_SERVER,
   FEAT_TOS_CLIENT,
   FEAT_POLLS_PER_LOOP,
@@ -99,16 +106,18 @@ enum Feature {
   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,
@@ -116,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,
@@ -129,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,
@@ -159,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);