From cbabc91b06ab1b468bb2e723349de754dab09b1e Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 3 Oct 2017 03:17:13 +0800 Subject: [PATCH] [Server] Stop MasterClient thread and inform server owner on ban --- apps/openmw-mp/MasterClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/openmw-mp/MasterClient.cpp b/apps/openmw-mp/MasterClient.cpp index 06e38fa6d..2b76531e4 100644 --- a/apps/openmw-mp/MasterClient.cpp +++ b/apps/openmw-mp/MasterClient.cpp @@ -129,6 +129,10 @@ bool MasterClient::Process(RakNet::Packet *packet) case ID_CONNECTION_REQUEST_ACCEPTED: case ID_DISCONNECTION_NOTIFICATION: break; + case ID_CONNECTION_BANNED: + Stop(); + LOG_MESSAGE_SIMPLE(Log::LOG_FATAL, "Your server was banned on the master server. Contact the master server administrator for details."); + break; case ID_MASTER_QUERY: break; case ID_MASTER_ANNOUNCE: