From d138843fe0b95bbb1d58baf8c0886a6b3622d0d0 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 5 Jan 2008 16:06:21 +0000 Subject: Fix snomask stacking, still needs to flush all snomasks on a timer to avoid messages getting too stacked up.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8638 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/snomasks.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/snomasks.cpp b/src/snomasks.cpp index f922703f2..2af5fc801 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -116,6 +116,11 @@ void Snomask::SendMessage(const std::string &message) void Snomask::Flush() { + if (this->LastMessage.empty()) + return; + + ServerInstance->Log(DEBUG, "Flusing snomask %s", this->Description.c_str()); + /* Only opers can receive snotices, so we iterate the oper list */ for (std::list::iterator i = ServerInstance->all_opers.begin(); i != ServerInstance->all_opers.end(); i++) { -- cgit v1.2.3