From 0d6f3c83f101e3cb1f6cd6768cc4d17de24db489 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Dec 2005 12:59:54 +0000 Subject: Forgot to remove dependency on serverstats *stats git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2533 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index c311ffaf3..b293e1298 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -46,7 +46,6 @@ extern int MODCOUNT; extern InspSocket* socket_ref[65535]; extern time_t TIME; extern userrec* fd_ref_table[65536]; -extern serverstats* stats; extern ServerConfig *Config; extern user_hash clientlist; extern whowas_hash whowas; @@ -649,7 +648,7 @@ void AddClient(int socket, char* host, int port, bool iscached, char* ip) void FullConnectUser(userrec* user) { - stats->statsConnects++; + ServerInstance->stats->statsConnects++; user->idle_lastmsg = TIME; log(DEBUG,"ConnectUser: %s",user->nick); @@ -778,13 +777,13 @@ void force_nickchange(userrec* user,const char* newnick) FOREACH_RESULT(OnUserPreNick(user,newnick)); if (MOD_RESULT) { - stats->statsCollisions++; + ServerInstance->stats->statsCollisions++; kill_link(user,"Nickname collision"); return; } if (matches_qline(newnick)) { - stats->statsCollisions++; + ServerInstance->stats->statsCollisions++; kill_link(user,"Nickname collision"); return; } -- cgit v1.2.3