From d59e218966b02a75a12beef3a43dd5d4bd894639 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 May 2008 14:28:18 +0000 Subject: [PATCH] Whoops, this was a bit fucked up :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9730 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/snomasks.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 1a130fb5a..91e554dd6 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -127,6 +127,10 @@ void Snomask::Flush() if (this->LastMessage.empty()) return; + a->WriteServ("NOTICE %s :*** %s: %s", a->nick, 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); + /* Only opers can receive snotices, so we iterate the oper list */ for (std::list::iterator i = ServerInstance->Users->all_opers.begin(); i != ServerInstance->Users->all_opers.end(); i++) { @@ -135,11 +139,9 @@ 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); } } } -- 2.39.5