From: Sebastian Goth Date: Wed, 11 Nov 2009 21:58:16 +0000 (+0100) Subject: Never send empty netsplit-quit messages X-Git-Tag: 0.6-beta1~182 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=1c3f7e5bf8a6c5df8acedcc162e6b372403a1cf9 Never send empty netsplit-quit messages --- diff --git a/src/core/netsplit.cpp b/src/core/netsplit.cpp index fd49a7d4..265521ab 100644 --- a/src/core/netsplit.cpp +++ b/src/core/netsplit.cpp @@ -167,7 +167,10 @@ void Netsplit::quitTimeout() _quitsWithMessageSent[channelIter.key()].append(user); } } - emit netsplitQuit(channelIter.key(), usersToSend, _quitMsg); + // not yet sure how that could happen, but never send empty netsplit-quits + // anyway. + if(!usersToSend.isEmpty()) + emit netsplitQuit(channelIter.key(), usersToSend, _quitMsg); } _sentQuit = true; }