View Single Post
09-10-14, 09:57 PM   #15
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by galvin View Post
Is the serverID a good way to test to see if the sender on a whisper is on the same server as you? Wrote up some code to get the serverID from UnitGUID(), then compare that with the GUID of the sender on a whisper event.
The server name has been appended to the sender name (eg. arg2 is "Sender-RealmName") since 5.4.7, even for same-realm senders, but I suppose if you want to use the server ID from the GUID instead, it's the same amount of work (one string operation and one comparison) so it doesn't really matter which method you use.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.