From dac63207aac2ed05603aaa7691421b6bbfc5dc35 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 1 Jun 2013 22:52:02 +0200 Subject: Remove (non-functional) total_bytes counter from Command --- src/command_parse.cpp | 1 - src/commands/cmd_stats.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3