fix bug which caused kicking to be logged as normal leaving

This commit is contained in:
Lion Kortlepel 2020-12-23 23:42:25 +01:00
parent f60a44f65f
commit 561c0bb381

View File

@ -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>(LuaArg { { c->GetID() } }), false);