]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_rmode.cpp
m_spanningtree Keep track of whether we've sent our burst, to be used for translation
[user/henk/code/inspircd.git] / src / modules / m_rmode.cpp
index 9bb7bcdcb7852d348bbcb61d65784a16827fe4e4..c81fbd7e7f15f9a0c61f58740436481c13fe7361 100644 (file)
@@ -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;