summaryrefslogtreecommitdiff
path: root/src/coremods/core_who.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-25 11:02:44 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-25 11:02:44 +0100
commitbc730a5d1a6df1c3ff5000a96eda6e153134ae04 (patch)
tree2ff1ea243f80f9ca0e80bb2c0781cdf13f8fc2fc /src/coremods/core_who.cpp
parentef0fecc856d435ff140ce87ca38618d6edceafcc (diff)
Add typedef OperList to UserManager for use with all_opers
Diffstat (limited to 'src/coremods/core_who.cpp')
-rw-r--r--src/coremods/core_who.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coremods/core_who.cpp b/src/coremods/core_who.cpp
index 523d857ce..670f05a90 100644
--- a/src/coremods/core_who.cpp
+++ b/src/coremods/core_who.cpp
@@ -347,7 +347,8 @@ CmdResult CommandWho::Handle (const std::vector<std::string>& parameters, User *
if (opt_viewopersonly)
{
/* Showing only opers */
- for (std::list<User*>::iterator i = ServerInstance->Users->all_opers.begin(); i != ServerInstance->Users->all_opers.end(); i++)
+ const UserManager::OperList& opers = ServerInstance->Users->all_opers;
+ for (UserManager::OperList::const_iterator i = opers.begin(); i != opers.end(); ++i)
{
User* oper = *i;