summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-18 14:28:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-18 14:28:18 +0000
commitd59e218966b02a75a12beef3a43dd5d4bd894639 (patch)
treeb94f9d577e7bfcaa539f354b90806a10ffb10a8f
parentcd7301e6f90c9fdaf86769b862389090fe4e455a (diff)
Whoops, this was a bit fucked up :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9730 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/snomasks.cpp6
1 files 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<User*>::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);
}
}
}