summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 10:23:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 10:23:14 +0000
commit44d3b5b82626f627069033c7bf019d4b1564b21c (patch)
tree6ccd51977679bc15e9823baa5fcab80892eae1d4 /include/inspircd.h
parentb70de5aa7840e8b43c9c5bdbeb0146ec1d5ea1a0 (diff)
Half way through updating to move a ton of extern confs into class ServerConfig
WILL NOT RUN ATM git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2392 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index a418cd305..3418d6ede 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -73,6 +73,27 @@
typedef std::deque<std::string> file_cache;
+class serverstats
+{
+ int statsAccept;
+ int statsRefused;
+ int statsUnknown;
+ int statsCollisions;
+ int statsDns;
+ int statsDnsGood;
+ int statsDnsBad;
+ int statsConnects;
+ int statsSent;
+ int statsRecv;
+
+ serverstats()
+ {
+ statsAccept = statsRefused = statsUnknown = 0;
+ statsCollisions = statsDns = statsDnsGood = 0;
+ statsDnsBad = statsConnects = statsSent = statsRecv = 0;
+ }
+};
+
typedef void (handlerfunc) (char**, int, userrec*);
/* prototypes */