]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Tidyup
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 27 Nov 2006 17:55:05 +0000 (17:55 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 27 Nov 2006 17:55:05 +0000 (17:55 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5821 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_silence_ext.cpp

index 19abc679f983672cd5b8b4a5cc4bb700793e4f9b..168dab78866a039ebee377bd9cac3280f91bb13b 100644 (file)
@@ -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;