diff options
-rw-r--r-- | include/ctables.h | 6 | ||||
-rw-r--r-- | src/command_parse.cpp | 1 | ||||
-rw-r--r-- | src/commands/cmd_stats.cpp | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/include/ctables.h b/include/ctables.h index 2ccca0f7b..6ead8081f 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -119,10 +119,6 @@ class CoreExport Command : public ServiceProvider */ unsigned long use_count; - /** used by /stats m - */ - unsigned long total_bytes; - /** True if the command is disabled to non-opers */ bool disabled; @@ -163,7 +159,7 @@ class CoreExport Command : public ServiceProvider */ Command(Module* me, const std::string &cmd, int minpara = 0, int maxpara = 0) : ServiceProvider(me, cmd, SERVICE_COMMAND), flags_needed(0), min_params(minpara), max_params(maxpara), - use_count(0), total_bytes(0), disabled(false), works_before_reg(false), allow_empty_last_param(true), + use_count(0), disabled(false), works_before_reg(false), allow_empty_last_param(true), Penalty(1) { } diff --git a/src/command_parse.cpp b/src/command_parse.cpp index d386337f2..8008f1d4c 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -337,7 +337,6 @@ bool CommandParser::ProcessCommand(LocalUser *user, std::string &cmd) { /* passed all checks.. first, do the (ugly) stats counters. */ cm->second->use_count++; - cm->second->total_bytes += cmd.length(); /* module calls too */ FIRST_MOD_RESULT(OnPreCommand, MOD_RESULT, (command, command_p, user, true, cmd)); diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index 692b0d2ec..3145940be 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -205,7 +205,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results) if (i->second->use_count) { /* RPL_STATSCOMMANDS */ - results.push_back(sn+" 212 "+user->nick+" "+i->second->name+" "+ConvToStr(i->second->use_count)+" "+ConvToStr(i->second->total_bytes)); + results.push_back(sn+" 212 "+user->nick+" "+i->second->name+" "+ConvToStr(i->second->use_count)); } } break; |