From 8d0392eb23e1b0cea064bcf7d1f864ee0bf64314 Mon Sep 17 00:00:00 2001 From: Sebastian Goth Date: Wed, 11 Nov 2009 22:58:16 +0100 Subject: [PATCH] Never send empty netsplit-quit messages --- src/core/netsplit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.20.1