From 578b43bfa8bcc5559917e779e3ea99e884cde219 Mon Sep 17 00:00:00 2001 From: doitux Date: Tue, 26 Feb 2013 23:25:33 +0100 Subject: [PATCH] implement admin action return msg --- src/gui/qt/startwindow/startwindowimpl.cpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/gui/qt/startwindow/startwindowimpl.cpp b/src/gui/qt/startwindow/startwindowimpl.cpp index f5fc1469..2053fdc6 100644 --- a/src/gui/qt/startwindow/startwindowimpl.cpp +++ b/src/gui/qt/startwindow/startwindowimpl.cpp @@ -1157,6 +1157,30 @@ void startWindowImpl::networkMessage(unsigned msgId) msgText = tr("An error occurred while reporting the game name."); } break; + case MSG_NET_ADMIN_REMOVE_GAME_ACCEPTED: { + msgText = tr("The game has been closed correctly."); + } + break; + case MSG_NET_ADMIN_REMOVE_GAME_REJECTED: { + msgText = tr("The game could not be closed."); + } + break; + case MSG_NET_ADMIN_BAN_PLAYER_ACCEPTED: { + msgText = tr("The player has been kicked and banned."); + } + break; + case MSG_NET_ADMIN_BAN_PLAYER_NODB: { + msgText = tr("The player has been kicked, but could not be banned,\nbecause the nick wasn't found in the database."); + } + break; + case MSG_NET_ADMIN_BAN_PLAYER_DBERROR: { + msgText = tr("The player has been kicked, but could not be banned due to a database error."); + } + break; + case MSG_NET_ADMIN_BAN_PLAYER_REJECTED: { + msgText = tr("The player could not be kicked and banned."); + } + break; default: ; break;