From 325beda3540fdd8f8e13f90866a372d07ec71620 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 14 Jul 2014 16:28:30 +0200 Subject: m_rmode Call Channel::GetUsers() instead of directly accessing Channel::userlist --- src/modules/m_rmode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') 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; -- cgit v1.2.3