From 2a2db5cfb519902b01b64e06a10500b2a47258af Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sun, 22 Mar 2026 17:28:33 -0700 Subject: [PATCH] fix: fire CHAT_MSG_TEXT_EMOTE for incoming text emotes handleTextEmote pushed emote messages directly to chatHistory instead of using addLocalChatMessage, so Lua chat addons never received CHAT_MSG_TEXT_EMOTE events for /wave, /dance, /bow, etc. from other players. Use addLocalChatMessage which fires the event and also notifies the C++ display callback. --- src/game/game_handler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index a8ca371c..92589e5c 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -13565,10 +13565,7 @@ void GameHandler::handleTextEmote(network::Packet& packet) { chatMsg.senderName = senderName; chatMsg.message = emoteText; - chatHistory.push_back(chatMsg); - if (chatHistory.size() > maxChatHistory) { - chatHistory.erase(chatHistory.begin()); - } + addLocalChatMessage(chatMsg); // Trigger emote animation on sender's entity via callback uint32_t animId = rendering::Renderer::getEmoteAnimByDbcId(data.textEmoteId);