# HG changeset patch # User Wuzzy # Date 1534168918 -7200 # Node ID 2d38dc2d3414afe56d20b4ae9b2034a31b21fe01 # Parent edbe5d80ffbc84cb8a7b4dc301ce4d57e2645161 Tweak some connection failure messages diff -r edbe5d80ffbc -r 2d38dc2d3414 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sun Aug 12 16:31:22 2018 +0200 +++ b/QTfrontend/hwform.cpp Mon Aug 13 16:01:58 2018 +0200 @@ -1673,7 +1673,7 @@ if (pnetserver) return; // we have server - let it care of all things if (hwnet) { - QString errorStr = QMessageBox::tr("Connection to server is lost") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Quit reason: ") + '"' + reason +'"')); + QString errorStr = QMessageBox::tr("The connection to the server is lost.") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Reason:") + "\n" + reason)); MessageDialog::ShowErrorMessage(errorStr, this); } diff -r edbe5d80ffbc -r 2d38dc2d3414 gameServer/Actions.hs --- a/gameServer/Actions.hs Sun Aug 12 16:31:22 2018 +0200 +++ b/gameServer/Actions.hs Mon Aug 13 16:01:58 2018 +0200 @@ -557,7 +557,7 @@ mapM_ processAction [ AddIP2Bans clHost (loc "60 seconds cooldown after kick") (addUTCTime 60 currentTime) , ModifyClient (\c -> c{isKickedFromServer = True}) - , ByeClient "Kicked" + , ByeClient $ loc "Kicked" ]