diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 01:35:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 01:35:01 +0000 |
commit | 12737ab4ad61a0d8a908c8a21594c7012e21eb3c (patch) | |
tree | bf819b3a528227d3ddf929e25e8b74d1db8ef1c7 /src/cmd_stats.cpp | |
parent | b8383dcc9524ca832de7daf56f44fe54b19e5bdc (diff) |
ConfigReader and FileReader now take InspIRCd* to their constructors
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_stats.cpp')
-rw-r--r-- | src/cmd_stats.cpp | 6 |
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; |