Skip to content

Commit

Permalink
Bot Addon: Fixed displaying addon instead of showing whisper spam in …
Browse files Browse the repository at this point in the history
…client
  • Loading branch information
mostlikely4r committed Nov 24, 2024
1 parent 94db3b5 commit 0bc3bde
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions playerbot/PlayerbotAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3359,10 +3359,13 @@ bool PlayerbotAI::TellPlayerNoFacing(Player* player, std::string text, Playerbot
type = currentChat.first;

if (type == CHAT_MSG_ADDON)
{
text = "BOT\t" + text;

//ChatHandler::BuildChatPacket(data, type == CHAT_MSG_ADDON ? CHAT_MSG_PARTY : type, text.c_str(), type == CHAT_MSG_ADDON ? LANG_ADDON : LANG_UNIVERSAL, CHAT_TAG_NONE, bot->GetObjectGuid(), bot->GetName());
//sServerFacade.SendPacket(player, data);
ChatHandler::BuildChatPacket(data, type == CHAT_MSG_ADDON ? CHAT_MSG_PARTY : type, text.c_str(), type == CHAT_MSG_ADDON ? LANG_ADDON : LANG_UNIVERSAL, CHAT_TAG_NONE, bot->GetObjectGuid(), bot->GetName());
sServerFacade.SendPacket(player, data);
return true;
}

this->Whisper(text, player->GetName());
return true;
Expand Down

0 comments on commit 0bc3bde

Please sign in to comment.