summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-09 15:24:18 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-09 15:24:18 +0200
commitb285303dc3faa01c9b472fe2323960b3d64848e3 (patch)
tree2c4bbe4aa45c002bacfa26c843f2b044b6a8fd5d /src
parente3bcb9b9054ad5b488365b80896634fe6cf105c0 (diff)
core_whowas Clean up GetStats()
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_whowas.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/coremods/core_whowas.cpp b/src/coremods/core_whowas.cpp
index 71fa6d738..0060d0621 100644
--- a/src/coremods/core_whowas.cpp
+++ b/src/coremods/core_whowas.cpp
@@ -79,13 +79,13 @@ CmdResult CommandWhowas::Handle (const std::vector<std::string>& parameters, Use
std::string CommandWhowas::GetStats()
{
- int whowas_size = 0;
- for (whowas_users::iterator i = whowas.begin(); i != whowas.end(); ++i)
+ size_t entrycount = 0;
+ for (whowas_users::const_iterator i = whowas.begin(); i != whowas.end(); ++i)
{
WhoWas::Nick::List& list = i->second->entries;
- whowas_size += list.size();
+ entrycount += list.size();
}
- return "Whowas entries: " + ConvToStr(whowas_size);
+ return "Whowas entries: " + ConvToStr(entrycount);
}
void CommandWhowas::AddToWhoWas(User* user)