]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_restrictmsg.cpp
To be more specific, specify rpath() macro here
[user/henk/code/inspircd.git] / src / modules / m_restrictmsg.cpp
index 8be5f270a58b8a19c5826ac92b9feddeb610d359..4f611653bb62d4b8e8ff5de0d4fc02dcab263866 100644 (file)
@@ -41,7 +41,7 @@ class ModuleRestrictMsg : public Module
 
        virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
        {
-               if (target_type == TYPE_USER)
+               if ((target_type == TYPE_USER) && (IS_LOCAL(user)))
                {
                        userrec* u = (userrec*)dest;
                        if (*u->oper || *user->oper)