From: Manuel Nickschas Date: Thu, 21 Nov 2013 23:41:56 +0000 (+0100) Subject: Add disconnection reasons X-Git-Tag: 0.10-beta1~91 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=0ccf6362a3c15dd827620c968c14b17a34afcf67 Add disconnection reasons This will display the reason for disconnection from the core in case of an incompatible protocol version or missing SSL in the status bar. --- diff --git a/src/client/clientauthhandler.cpp b/src/client/clientauthhandler.cpp index a390ab6a..43174535 100644 --- a/src/client/clientauthhandler.cpp +++ b/src/client/clientauthhandler.cpp @@ -166,14 +166,14 @@ void ClientAuthHandler::onProtocolVersionMismatch(int actual, int expected) { emit errorPopup(tr("The Quassel Core you are trying to connect to is too old!
" "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")); }