Whoops, this was a bit fucked up :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9730 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-05-18 14:28:18 +00:00
parent cd7301e6f9
commit d59e218966

View File

@ -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);
}
}
}