]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_silence.cpp
m_override now has a 'requirekey' option, that requires a special key of 'override...
[user/henk/code/inspircd.git] / src / modules / m_silence.cpp
index 7524acf569c26abbc444ed468998b3336811bb64..2a8fbae94319502e98b51c1e3aad7a00772b580b 100644 (file)
@@ -56,7 +56,7 @@ class CommandSVSSilence : public Command
  public:
        CommandSVSSilence(InspIRCd* Instance) : Command(Instance,"SVSSILENCE", 0, 2)
        {
-               this->source = "m_watch.so";
+               this->source = "m_silence.so";
                syntax = "<target> {[+|-]<mask> <p|c|i|n|t|a|x>}";
                TRANSLATE3(TR_NICK, TR_TEXT, TR_END); /* we watch for a nick. not a UID. */
        }
@@ -381,6 +381,10 @@ class ModuleSilence : public Module
 
        int MatchPattern(User* dest, User* source, int pattern)
        {
+               /* Server source */
+               if (!source || !dest)
+                       return 1;
+
                silencelist* sl;
                dest->GetExt("silence_list", sl);
                if (sl)