diff options
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 21 |
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 */ |