diff options
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r-- | src/modules/m_silence.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 5e157420e..6ba748d2f 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -315,9 +315,9 @@ class ModuleSilence : public Module void OnBuildExemptList(MessageType message_type, Channel* chan, User* sender, char status, CUList &exempt_list, const std::string &text) { int public_silence = (message_type == MSG_PRIVMSG ? SILENCE_CHANNEL : SILENCE_CNOTICE); - const UserMembList *ulist = chan->GetUsers(); - for (UserMembCIter i = ulist->begin(); i != ulist->end(); i++) + const UserMembList& ulist = chan->GetUsers(); + for (UserMembCIter i = ulist.begin(); i != ulist.end(); ++i) { if (IS_LOCAL(i->first)) { |