summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-05 16:06:21 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-05 16:06:21 +0000
commitd138843fe0b95bbb1d58baf8c0886a6b3622d0d0 (patch)
tree4279df341c5a560919cc7d2221a4671cac23fc31 /src
parent1c774ea51f6799ca18a1028486f2812fe487ebdc (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/snomasks.cpp5
1 files changed, 5 insertions, 0 deletions
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<User*>::iterator i = ServerInstance->all_opers.begin(); i != ServerInstance->all_opers.end(); i++)
{