diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 12:59:54 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 12:59:54 +0000 |
commit | 0d6f3c83f101e3cb1f6cd6768cc4d17de24db489 (patch) | |
tree | 7aa90f7ef488af179932b594269e472e16da0577 /src/users.cpp | |
parent | d3e5283ae0768c72bd8cbc3b3254260487ab4400 (diff) |
Forgot to remove dependency on serverstats *stats
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2533 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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; } |