[Patch]click on user's name for nameannounce


Mainly what I want to achieve is to edit the nameannounce function so when a gm uses it the players can click on his name to whisper something (like on clicking a player’s name for messages in CHAT_MSG_SAY it auto toggles whisper,ex: Tell Kenny:).

I very much appreciate your work and dedication

Best regards,



src/server/game/Chat/Commands/Level1.cpp | 6 ++±–

1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/server/game/Chat/Commands/Level1.cpp b/src/server/game/Chat/Commands/Level1.cpp

index a10a78a…29d75d1 100755

— a/src/server/game/Chat/Commands/Level1.cpp

+++ b/src/server/game/Chat/Commands/Level1.cpp

@@ -45,11 +45,11 @@ bool ChatHandler::HandleNameAnnounceCommand(const char* args)

 if (!*args)

     return false;
  • std::string name(“Console”);
  • std::string name;

    if (WorldSession* session = GetSession())

    name = session->GetPlayer()->GetName();
  • sWorld->SendWorldText(LANG_ANNOUNCE_COLOR, name.c_str(), args);

  • std::string nameLink = playerLink(name);

  • sWorld->SendWorldText(LANG_ANNOUNCE_COLOR, nameLink.c_str(), args);

    return true;


Thank you !