Add disconnection reasons
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 21 Nov 2013 23:41:56 +0000 (00:41 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 21 Nov 2013 23:43:08 +0000 (00:43 +0100)
This will display the reason for disconnection from the core in case of
an incompatible protocol version or missing SSL in the status bar.

src/client/clientauthhandler.cpp

index a390ab6..4317453 100644 (file)
@@ -166,14 +166,14 @@ void ClientAuthHandler::onProtocolVersionMismatch(int actual, int expected)
 {
     emit errorPopup(tr("<b>The Quassel Core you are trying to connect to is too old!</b><br>"
            "We need at least protocol v%1, but the core speaks v%2 only.").arg(expected, actual));
-    requestDisconnect();
+    requestDisconnect(tr("Incompatible protocol version, connection to core refused"));
 }
 
 
 void ClientAuthHandler::handle(const ClientDenied &msg)
 {
     emit errorPopup(msg.errorString);
-    requestDisconnect();
+    requestDisconnect(tr("The core refused connection from this client"));
 }