From 561c0bb381a6a1278ccc35ad92ac81db703fbec2 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 23 Dec 2020 23:42:25 +0100 Subject: [PATCH] fix bug which caused kicking to be logged as normal leaving --- src/Network/InitClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Network/InitClient.cpp b/src/Network/InitClient.cpp index 47cf44e..1234cd4 100644 --- a/src/Network/InitClient.cpp +++ b/src/Network/InitClient.cpp @@ -83,7 +83,8 @@ void OnDisconnect(Client* c, bool kicked) { } if (kicked) Packet = ("L") + c->GetName() + (" was kicked!"); - Packet = ("L") + c->GetName() + (" Left the server!"); + else + Packet = ("L") + c->GetName() + (" left the server!"); SendToAll(c, Packet, false, true); Packet.clear(); TriggerLuaEvent(("onPlayerDisconnect"), false, nullptr, std::make_unique(LuaArg { { c->GetID() } }), false);