From a589577b68cb84bc877ecdd4c0f9cb84a1581ddd Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 21 Nov 2012 00:15:13 +0100 Subject: Add a typedef for LocalUserList --- src/commands/cmd_modenotice.cpp | 2 +- src/commands/cmd_stats.cpp | 4 ++-- src/commands/cmd_wallops.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_modenotice.cpp b/src/commands/cmd_modenotice.cpp index c962a4d11..852b72f6a 100644 --- a/src/commands/cmd_modenotice.cpp +++ b/src/commands/cmd_modenotice.cpp @@ -31,7 +31,7 @@ class CommandModeNotice : public Command CmdResult Handle(const std::vector& parameters, User *src) { int mlen = parameters[0].length(); - for (std::vector::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) + for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) { User* user = *i; for (int n = 0; n < mlen; n++) diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index 1d3130bd4..9a5bfc52d 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -364,7 +364,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results) /* stats l (show user I/O stats) */ case 'l': results.push_back(sn+" 211 "+user->nick+" :nick[ident@host] sendq cmds_out bytes_out cmds_in bytes_in time_open"); - for (std::vector::iterator n = ServerInstance->Users->local_users.begin(); n != ServerInstance->Users->local_users.end(); n++) + for (LocalUserList::iterator n = ServerInstance->Users->local_users.begin(); n != ServerInstance->Users->local_users.end(); n++) { LocalUser* i = *n; results.push_back(sn+" 211 "+user->nick+" "+i->nick+"["+i->ident+"@"+i->dhost+"] "+ConvToStr(i->eh.getSendQSize())+" "+ConvToStr(i->cmds_out)+" "+ConvToStr(i->bytes_out)+" "+ConvToStr(i->cmds_in)+" "+ConvToStr(i->bytes_in)+" "+ConvToStr(ServerInstance->Time() - i->age)); @@ -374,7 +374,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results) /* stats L (show user I/O stats with IP addresses) */ case 'L': results.push_back(sn+" 211 "+user->nick+" :nick[ident@ip] sendq cmds_out bytes_out cmds_in bytes_in time_open"); - for (std::vector::iterator n = ServerInstance->Users->local_users.begin(); n != ServerInstance->Users->local_users.end(); n++) + for (LocalUserList::iterator n = ServerInstance->Users->local_users.begin(); n != ServerInstance->Users->local_users.end(); n++) { LocalUser* i = *n; results.push_back(sn+" 211 "+user->nick+" "+i->nick+"["+i->ident+"@"+i->GetIPString()+"] "+ConvToStr(i->eh.getSendQSize())+" "+ConvToStr(i->cmds_out)+" "+ConvToStr(i->bytes_out)+" "+ConvToStr(i->cmds_in)+" "+ConvToStr(i->bytes_in)+" "+ConvToStr(ServerInstance->Time() - i->age)); diff --git a/src/commands/cmd_wallops.cpp b/src/commands/cmd_wallops.cpp index 0effa3c5a..198997a95 100644 --- a/src/commands/cmd_wallops.cpp +++ b/src/commands/cmd_wallops.cpp @@ -45,7 +45,7 @@ CmdResult CommandWallops::Handle (const std::vector& parameters, Us std::string wallop("WALLOPS :"); wallop.append(parameters[0]); - for (std::vector::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) + for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) { User* t = *i; if (t->IsModeSet('w')) -- cgit v1.2.3