Skip to content

Commit d5dbc4d

Browse files
authored
Hotfix: prevent server crash when whisper 'logout' (mod-playerbots#1874)
Temp Hotfix to resolve mod-playerbots#1870.
1 parent 2424f73 commit d5dbc4d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Playerbots.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ class PlayerbotsPlayerScript : public PlayerScript
163163
if (PlayerbotAI* botAI = GET_PLAYERBOT_AI(receiver))
164164
{
165165
botAI->HandleCommand(type, msg, player);
166+
167+
// hotfix; otherwise the server will crash when whispering logout
168+
// https://github.com/mod-playerbots/mod-playerbots/pull/1838
169+
// TODO: find the root cause and solve it. (does not happen in party chat)
170+
if (msg == "logout")
171+
return false;
166172
}
167173
}
168174
return true;

0 commit comments

Comments
 (0)