aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Chat.h')
-rw-r--r--src/game/Chat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Chat.h b/src/game/Chat.h
index 6ee75789db4..5bf103cdd5d 100644
--- a/src/game/Chat.h
+++ b/src/game/Chat.h
@@ -511,6 +511,9 @@ class ChatHandler
uint64 extractGuidFromLink(char* text);
GameTele const* extractGameTeleFromLink(char* text);
bool GetPlayerGroupAndGUIDByName(const char* cname, Player* &plr, Group* &group, uint64 &guid, bool offline = false);
+ std::string extractPlayerNameFromLink(char* text);
+
+ std::string playerLink(std::string const& name) const { return m_session ? "|cffffffff|Hplayer:"+name+"|h["+name+"]|h|r" : name; }
GameObject* GetObjectGlobalyWithGuidOrNearWithDbGuid(uint32 lowguid,uint32 entry);