summaryrefslogtreecommitdiff
path: root/src/cmd_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_stats.cpp')
-rw-r--r--src/cmd_stats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp
index e8d92e106..3ed8c8b9f 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -41,19 +41,19 @@
#include "command_parse.h"
#include "commands/cmd_stats.h"
-extern InspIRCd* ServerInstance;
+
extern time_t TIME;
void cmd_stats::Handle (const char** parameters, int pcnt, userrec *user)
{
string_list values;
- DoStats(*parameters[0], user, values);
+ DoStats(this->ServerInstance, *parameters[0], user, values);
for (size_t i = 0; i < values.size(); i++)
user->Write(":%s", values[i].c_str());
}
-void DoStats(char statschar, userrec* user, string_list &results)
+void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user, string_list &results)
{
std::string sn = ServerInstance->Config->ServerName;