summaryrefslogtreecommitdiff
path: root/src/commands/cmd_stats.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-02 13:45:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-02 13:45:02 +0000
commit5ecd5447d0f52592b121778f251965179597466d (patch)
treee74e92a0ca2d37f423fad58a1a5578cc0aef1124 /src/commands/cmd_stats.cpp
parent68b55aa455ad78bb5939aa7c94645df2d339bec1 (diff)
Tidy up, and make the identifer for a line type be std::string not char
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8459 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_stats.cpp')
-rw-r--r--src/commands/cmd_stats.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp
index 5d4417689..0e8a5a0b0 100644
--- a/src/commands/cmd_stats.cpp
+++ b/src/commands/cmd_stats.cpp
@@ -144,6 +144,7 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str
case 'q':
case 'Z':
case 'e':
+ {
/* FIXME: Make the 216 here different depending on stats char:
* k: 216
* g: 223
@@ -151,7 +152,10 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str
* z: 223
* e: 223
*/
- ServerInstance->XLines->InvokeStats(toupper(statschar),216,user,results);
+ std::string stat;
+ stat += toupper(statschar);
+ ServerInstance->XLines->InvokeStats(stat,216,user,results);
+ }
break;
/* stats m (list number of times each command has been used, plus bytecount) */