From 75cba40c8d0e3de1843991110d878b56ca33cfc2 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Nov 2006 17:55:05 +0000 Subject: Tidyup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5821 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_silence_ext.cpp | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/src/modules/m_silence_ext.cpp b/src/modules/m_silence_ext.cpp index 19abc679f..168dab788 100644 --- a/src/modules/m_silence_ext.cpp +++ b/src/modules/m_silence_ext.cpp @@ -317,37 +317,9 @@ class ModuleSilence : public Module else if (target_type == TYPE_CHANNEL) { chanrec* chan = (chanrec*)dest; - int public_silence = (silence_type == SILENCE_PRIVATE ? SILENCE_CHANNEL : SILENCE_CNOTICE); - if (chan) { - CUList *ulist; - switch (status) - { - case '@': - ulist = chan->GetOppedUsers(); - break; - case '%': - ulist = chan->GetHalfoppedUsers(); - break; - case '+': - ulist = chan->GetVoicedUsers(); - break; - default: - ulist = chan->GetUsers(); - break; - } - - for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) - { - if ((IS_LOCAL(i->second)) && (user != i->second)) - { - if (MatchPattern(i->second, user, public_silence) == 1) - { - exempt_list[i->second] = i->second; - } - } - } + this->OnBuildExemptList((silence_type == SILENCE_PRIVATE ? MSG_PRIVMSG : MSG_NOTICE), chan, user, status, exempt_list); } } return 0; -- cgit v1.2.3