From: Sebastian Goth Date: Wed, 11 Nov 2009 21:58:16 +0000 (+0100) Subject: Never send empty netsplit-quit messages X-Git-Tag: 0.5.1~9 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=8d0392eb23e1b0cea064bcf7d1f864ee0bf64314;hp=f7d920731ede8ab4d597a783502875b23d96c6e7 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; }