mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 12:45:36 +00:00
fix bug which caused kicking to be logged as normal leaving
This commit is contained in:
parent
f60a44f65f
commit
561c0bb381
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user