diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/snomasks.cpp | 5 |
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++) { |