Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-21-14, 01:26 PM   #1
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Always include realm name

Just a quick check.. would this ever not work to make sure realm name is always included?

Code:
if not name:match("%-") then
	name = name.."-"..gsub(GetRealmName(), " ", "")
end
Assuming it's either the full realm name or nothing, which will be the case for any CHAT_MSG event, yes? And realm name will always be there for messages from other realms, yes?

Do realm names ever have spaces in them nowadays in API contexts? (except for GetRealmName then)
__________________
Grab your sword and fight the Horde!

Last edited by Lombra : 05-21-14 at 01:29 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Always include realm name


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off