From 6c025fcb9e00e80c8279daa70ab4fde3c026e335 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Nov 2007 15:22:23 +0000 Subject: [PATCH] Put back different stats numerics for /stats g, /stats k etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8463 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_stats.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index 0e8a5a0b0..767966caa 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -47,6 +47,7 @@ CmdResult CommandStats::Handle (const char** parameters, int /* pcnt */, User *u DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, string_list &results) { std::string sn = ServerInstance->Config->ServerName; + int statsnumber = 0; if ((!*ServerInstance->Config->UserStats && !IS_OPER(user)) || (!IS_OPER(user) && !ServerInstance->ULine(user->server) && !strchr(ServerInstance->Config->UserStats,statschar))) { @@ -140,21 +141,20 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str break; case 'k': + statsnumber = 216; case 'g': + statsnumber = 223; case 'q': + statsnumber = 217; case 'Z': + statsnumber = 223; case 'e': { - /* FIXME: Make the 216 here different depending on stats char: - * k: 216 - * g: 223 - * q: 217 - * z: 223 - * e: 223 - */ + if (!statsnumber) + statsnumber = 223; std::string stat; stat += toupper(statschar); - ServerInstance->XLines->InvokeStats(stat,216,user,results); + ServerInstance->XLines->InvokeStats(stat,statsnumber,user,results); } break; -- 2.39.2