]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanfilter.cpp
The last commit never happened.
[user/henk/code/inspircd.git] / src / modules / m_chanfilter.cpp
index e21ac8ca41837d98c68048718141d7a995f27075..3c16b013d0550aba81666a84608b2fb70331df2a 100644 (file)
@@ -92,7 +92,7 @@ class ModuleChanFilter : public Module
 
        virtual int ProcessMessages(userrec* user,chanrec* chan,std::string &text)
        {
-               if (!IS_LOCAL(user))
+               if (!IS_LOCAL(user) || CHANOPS_EXEMPT(ServerInstance, 'g') && chan->GetStatus(user) == STATUS_OP)
                        return 0;
 
                // Create a copy of the string in irc::string
@@ -112,6 +112,7 @@ class ModuleChanFilter : public Module
                                }
                        }
                }
+
                return 0;
        }