summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 12:54:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 12:54:19 +0000
commit4c6bae4e369ba9a3d8afe2c7e50304ff5d12a650 (patch)
treee3e5dcc370cff469347e176affc708f0ec5420fe /src/commands.cpp
parentc07c9729f37becb33900a9ff8b0b08ee1e8648a1 (diff)
Moved serverstats stuff out
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2529 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index a81214f3d..e6c578b84 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -90,8 +90,6 @@ extern std::vector<userrec*> local_users;
// by an integer, meaning there is no need for a scan/search operation.
extern userrec* fd_ref_table[65536];
-extern serverstats* stats;
-
char* CleanFilename(char* name)
{
char* p = name + strlen(name);
@@ -1436,12 +1434,12 @@ void handle_stats(char **parameters, int pcnt, userrec *user)
if (*parameters[0] == 'T')
{
- WriteServ(user->fd,"249 Brain :accepts %d refused %d",stats->statsAccept,stats->statsRefused);
- WriteServ(user->fd,"249 Brain :unknown commands %d",stats->statsUnknown);
- WriteServ(user->fd,"249 Brain :nick collisions %d",stats->statsCollisions);
- WriteServ(user->fd,"249 Brain :dns requests %d succeeded %d failed %d",stats->statsDns,stats->statsDnsGood,stats->statsDnsBad);
- WriteServ(user->fd,"249 Brain :connections %d",stats->statsConnects);
- WriteServ(user->fd,"249 Brain :bytes sent %dK recv %dK",(stats->statsSent / 1024),(stats->statsRecv / 1024));
+ WriteServ(user->fd,"249 Brain :accepts %d refused %d",ServerInstance->stats->statsAccept,ServerInstance->stats->statsRefused);
+ WriteServ(user->fd,"249 Brain :unknown commands %d",ServerInstance->stats->statsUnknown);
+ WriteServ(user->fd,"249 Brain :nick collisions %d",ServerInstance->stats->statsCollisions);
+ WriteServ(user->fd,"249 Brain :dns requests %d succeeded %d failed %d",ServerInstance->stats->statsDns,ServerInstance->stats->statsDnsGood,ServerInstance->stats->statsDnsBad);
+ WriteServ(user->fd,"249 Brain :connections %d",ServerInstance->stats->statsConnects);
+ WriteServ(user->fd,"249 Brain :bytes sent %dK recv %dK",(ServerInstance->stats->statsSent / 1024),(ServerInstance->stats->statsRecv / 1024));
}
/* stats o */