summaryrefslogtreecommitdiff
path: root/src/helperfuncs.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/helperfuncs.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/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 3e188ee88..e80bec80c 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -56,7 +56,6 @@ extern time_t TIME;
extern char lowermap[255];
static char list[MAXBUF];
extern userrec* fd_ref_table[65536];
-extern serverstats* stats;
static char already_sent[65536];
extern std::vector<userrec*> all_opers;
extern user_hash clientlist;
@@ -148,7 +147,7 @@ void Write(int sock,char *text, ...)
{
fd_ref_table[sock]->AddWriteBuf(tb);
}
- stats->statsSent += bytes;
+ ServerInstance->stats->statsSent += bytes;
}
else log(DEFAULT,"ERROR! attempted write to a user with no fd_ref_table entry!!!");
}
@@ -181,7 +180,7 @@ void WriteServ(int sock, char* text, ...)
{
fd_ref_table[sock]->AddWriteBuf(tb);
}
- stats->statsSent += bytes;
+ ServerInstance->stats->statsSent += bytes;
}
else log(DEFAULT,"ERROR! attempted write to a user with no fd_ref_table entry!!!");
}
@@ -214,7 +213,7 @@ void WriteFrom(int sock, userrec *user,char* text, ...)
{
fd_ref_table[sock]->AddWriteBuf(tb);
}
- stats->statsSent += bytes;
+ ServerInstance->stats->statsSent += bytes;
}
else log(DEFAULT,"ERROR! attempted write to a user with no fd_ref_table entry!!!");
}
@@ -1073,7 +1072,7 @@ void ShowMOTD(userrec *user)
{
user->AddWriteBuf(WholeMOTD);
}
- stats->statsSent += WholeMOTD.length();
+ ServerInstance->stats->statsSent += WholeMOTD.length();
}
void ShowRULES(userrec *user)