]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Only examine local messages
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 4 Apr 2008 22:58:06 +0000 (22:58 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 4 Apr 2008 22:58:06 +0000 (22:58 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9343 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_quietban.cpp

index ea5018bd549c0ff7634be4cc3b3cb60cfff40365..296cb20db5b04136ab293a5d502fbb6d2e912313 100644 (file)
@@ -36,6 +36,9 @@ class ModuleQuietBan : public Module
 
        virtual int OnUserPreMessage(User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list)
        {
+               if (!IS_LOCAL(user))
+                       return 0;
+
                if (target_type == TYPE_CHANNEL)
                {
                        if (((Channel *)dest)->IsExtBanned(user, 'q'))
@@ -50,6 +53,9 @@ class ModuleQuietBan : public Module
 
        virtual int OnUserPreNotice(User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list)
        {
+               if (!IS_LOCAL(user))
+                       return 0;
+
                if (target_type == TYPE_CHANNEL)
                {
                        if (((Channel *)dest)->IsExtBanned(user, 'q'))