diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 12:54:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 12:54:19 +0000 |
commit | 4c6bae4e369ba9a3d8afe2c7e50304ff5d12a650 (patch) | |
tree | e3e5dcc370cff469347e176affc708f0ec5420fe /src/userprocess.cpp | |
parent | c07c9729f37becb33900a9ff8b0b08ee1e8648a1 (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/userprocess.cpp')
-rw-r--r-- | src/userprocess.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 9c26eb343..a73eb7d25 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -70,7 +70,6 @@ extern time_t OLDTIME; extern std::vector<userrec*> local_users; extern InspIRCd* ServerInstance; -extern serverstats* stats; extern ServerConfig *Config; extern userrec* fd_ref_table[65536]; char data[65536]; @@ -106,7 +105,7 @@ void ProcessUser(userrec* cu) log(DEBUG,"Read result: %d",result); if (result) { - stats->statsRecv += result; + ServerInstance->stats->statsRecv += result; // perform a check on the raw buffer as an array (not a string!) to remove // characters 0 and 7 which are illegal in the RFC - replace them with spaces. // hopefully this should stop even more people whining about "Unknown command: *" @@ -308,7 +307,7 @@ bool DoBackgroundUserStuff(time_t TIME) { log(DEBUG,"signon exceed, registered=3, and modules ready, OK: %d %d",TIME,curr->signon); curr->dns_done = true; - stats->statsDnsBad++; + ServerInstance->stats->statsDnsBad++; FullConnectUser(curr); if (fd_ref_table[currfd] != curr) // something changed, bail pronto return true; @@ -377,7 +376,7 @@ void CheckDie() } } -void LoadAllModules() +void LoadAllModules(InspIRCd* ServerInstance) { /* We must load the modules AFTER initializing the socket engine, now */ MODCOUNT = -1; |