From d5dbc4ddd70c021175451f55befbcb1411361b38 Mon Sep 17 00:00:00 2001 From: Keleborn <22352763+Celandriel@users.noreply.github.com> Date: Mon, 24 Nov 2025 12:49:55 -0800 Subject: [PATCH] Hotfix: prevent server crash when whisper 'logout' (#1874) Temp Hotfix to resolve #1870. --- src/Playerbots.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Playerbots.cpp b/src/Playerbots.cpp index ecaaa583..ed4e4826 100644 --- a/src/Playerbots.cpp +++ b/src/Playerbots.cpp @@ -163,6 +163,12 @@ public: if (PlayerbotAI* botAI = GET_PLAYERBOT_AI(receiver)) { botAI->HandleCommand(type, msg, player); + + // hotfix; otherwise the server will crash when whispering logout + // https://github.com/mod-playerbots/mod-playerbots/pull/1838 + // TODO: find the root cause and solve it. (does not happen in party chat) + if (msg == "logout") + return false; } } return true;