summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-14 16:28:30 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-14 16:28:30 +0200
commit325beda3540fdd8f8e13f90866a372d07ec71620 (patch)
tree715866fc34d3f224f867908c1a75f3c10b14a0be
parent46c97a8db770d637cf8e11fa8b178a32c60cdada (diff)
m_rmode Call Channel::GetUsers() instead of directly accessing Channel::userlist
-rw-r--r--src/modules/m_rmode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_rmode.cpp b/src/modules/m_rmode.cpp
index 9bb7bcdcb..c81fbd7e7 100644
--- a/src/modules/m_rmode.cpp
+++ b/src/modules/m_rmode.cpp
@@ -65,7 +65,8 @@ class CommandRMode : public Command
if ((pm = mh->IsPrefixMode()))
{
// As user prefix modes don't have a GetList() method, let's iterate through the channel's users.
- for (Channel::MemberMap::const_iterator it = chan->userlist.begin(); it != chan->userlist.end(); ++it)
+ const Channel::MemberMap& users = chan->GetUsers();
+ for (Channel::MemberMap::const_iterator it = users.begin(); it != users.end(); ++it)
{
if (!InspIRCd::Match(it->first->nick, pattern))
continue;