summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-02 15:22:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-02 15:22:23 +0000
commit6c025fcb9e00e80c8279daa70ab4fde3c026e335 (patch)
tree82c88ea5016d1eae237d2c539f8721fdb6a99dbd /src/commands
parent5943ae1193482d2fb3f0b184a55f3f4c787d603b (diff)
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
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_stats.cpp16
1 files 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;