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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp
index 44755451d..0e2935e5d 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -29,12 +29,14 @@ extern "C" command_t* init_command(InspIRCd* Instance)
return new cmd_stats(Instance);
}
-void cmd_stats::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_stats::Handle (const char** parameters, int pcnt, userrec *user)
{
string_list values;
DoStats(this->ServerInstance, *parameters[0], user, values);
for (size_t i = 0; i < values.size(); i++)
user->Write(":%s", values[i].c_str());
+
+ return CMD_SUCCESS;
}
void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user, string_list &results)