Hotfix: prevent server crash when whisper 'logout' (#1874)

Temp Hotfix to resolve #1870.
This commit is contained in:
Keleborn
2025-11-24 12:49:55 -08:00
committed by GitHub
parent 2424f73bc4
commit d5dbc4ddd7

View File

@@ -163,6 +163,12 @@ public:
if (PlayerbotAI* botAI = GET_PLAYERBOT_AI(receiver)) if (PlayerbotAI* botAI = GET_PLAYERBOT_AI(receiver))
{ {
botAI->HandleCommand(type, msg, player); 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; return true;