From f715ccd368ef75e73f48270724b94edf38b1cb6c Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 19 Sep 2021 16:16:38 -0400 Subject: [PATCH] [Bug Fix] Fixes EVENT_DISCONNECT for /quit and /exit. (#1542) /quit and /exit will now properly parse to EVENT_DISCONNECT so operators can do things on disconnect to these players, previously it only functioned for /camp. --- zone/client_process.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index 0fd418131..34f2bb877 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -183,6 +183,8 @@ bool Client::Process() { SetDynamicZoneMemberStatus(DynamicZoneMemberStatus::Offline); + parse->EventPlayer(EVENT_DISCONNECT, this, "", 0); + return false; //delete client }