]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_silence.cpp
Add config <options:disablehmac> to support disabling of HMAC, and tidy up to detect...
[user/henk/code/inspircd.git] / src / modules / m_silence.cpp
index 7dcb947878749e711bde5aefeba613cab8866421..5c8e5fdefec45ca275057044ad87642c5637df9f 100644 (file)
@@ -142,7 +142,7 @@ class ModuleSilence : public Module
                List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[I_OnUserPreMessage] = 1;
        }
 
-       virtual void OnUserQuit(userrec* user, const std::string &reason)
+       virtual void OnUserQuit(userrec* user, const std::string &reason, const std::string &oper_message)
        {
                // when the user quits tidy up any silence list they might have just to keep things tidy
                // and to prevent a HONKING BIG MEMORY LEAK!
@@ -167,7 +167,7 @@ class ModuleSilence : public Module
                // privmsgs from people on the silence list, directed privately at the user.
                // channel messages are unaffected (ever tried to follow the flow of conversation in
                // a channel when you've set an ignore on the two most talkative people?)
-               if (target_type == TYPE_USER)
+               if ((target_type == TYPE_USER) && (IS_LOCAL(user)))
                {
                        userrec* u = (userrec*)dest;
                        silencelist* sl;