]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Log all snomasks to "snomask" log type, level DEFAULT. This means your log gets all...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 14:19:16 +0000 (14:19 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 14:19:16 +0000 (14:19 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9729 e03df62e-2008-0410-955e-edbf42e46eb7

src/snomasks.cpp

index 2309b9ac06cd840bc4adacc2f3b4ef7721c61669..1a130fb5aaa4ee3a0dcfb38adc0693ce003d7225 100644 (file)
@@ -135,9 +135,11 @@ void Snomask::Flush()
                {
 
                        a->WriteServ("NOTICE %s :*** %s: %s", a->nick, this->Description.c_str(), this->LastMessage.c_str());
+                       ServerInstance->Logs->Log("snomask", DEFAULT, "%s: %s", this->Description.c_str(), this->LastMessage.c_str());
                        if (Count > 1)
                        {
                                a->WriteServ("NOTICE %s :*** %s: (last message repeated %u times)", a->nick, this->Description.c_str(), Count);
+                               ServerInstance->Logs->Log("snomask", DEFAULT, "%s: (last message repeated %u times)", this->Description.c_str(), Count);
                        }
                }
        }