/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2014 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
return;
}
+ socket()->setSocketOption(QAbstractSocket::KeepAliveOption, true);
+
_peer = new LegacyPeer(this, socket(), this);
connect(_peer, SIGNAL(transferProgress(int,int)), SIGNAL(transferProgress(int,int)));
{
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"));
}