]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/snomasks.cpp
Convertage.
[user/henk/code/inspircd.git] / src / snomasks.cpp
index 91e554dd67786e812bf42c8c4f38f21b32a273bc..e4c02057f5ad890331e4a3d3eb67b02a42780bde 100644 (file)
@@ -127,7 +127,7 @@ void Snomask::Flush()
        if (this->LastMessage.empty())
                return;
 
-       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)
                ServerInstance->Logs->Log("snomask", DEFAULT, "%s: (last message repeated %u times)", this->Description.c_str(), Count);
 
@@ -138,10 +138,10 @@ void Snomask::Flush()
                if (IS_LOCAL(a) && a->IsModeSet('s') && a->IsModeSet('n') && a->IsNoticeMaskSet(MySnomask) && !a->quitting)
                {
 
-                       a->WriteServ("NOTICE %s :*** %s: %s", a->nick, this->Description.c_str(), this->LastMessage.c_str());
+                       a->WriteServ("NOTICE %s :*** %s: %s", a->nick.c_str(), 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);
+                               a->WriteServ("NOTICE %s :*** %s: (last message repeated %u times)", a->nick.c_str(), this->Description.c_str(), Count);
                        }
                }
        }