summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-07-19 13:55:02 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-25 13:41:36 +0200
commit61d586b1a3ad689669f6dcdc285b0d021ca814bd (patch)
tree328d3148a653932445a2f8488500852b1e812e52 /src/commands
parent9745333cd4c846ef04ad78c41f04a87af7e5b2d6 (diff)
Clean up the protocol interface
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_lusers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_lusers.cpp b/src/commands/cmd_lusers.cpp
index ef35d1e19..06419733d 100644
--- a/src/commands/cmd_lusers.cpp
+++ b/src/commands/cmd_lusers.cpp
@@ -73,11 +73,11 @@ class CommandLusers : public Command
CmdResult CommandLusers::Handle (const std::vector<std::string>&, User *user)
{
unsigned int n_users = ServerInstance->Users->RegisteredUserCount();
- ProtoServerList serverlist;
+ ProtocolInterface::ServerList serverlist;
ServerInstance->PI->GetServerList(serverlist);
unsigned int n_serv = serverlist.size();
unsigned int n_local_servs = 0;
- for(ProtoServerList::iterator i = serverlist.begin(); i != serverlist.end(); ++i)
+ for (ProtocolInterface::ServerList::const_iterator i = serverlist.begin(); i != serverlist.end(); ++i)
{
if (i->parentname == ServerInstance->Config->ServerName)
n_local_servs++;