Reply
Thread Tools Display Modes
Unread 01-25-14, 10:48 PM   #1
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 60
Possible Bug In CHAT_MSG_TEXT_EMOTE

I'm the author of ServerIgnore and someone just reported that emotes weren't being blocked like they were supposed to be.

After some testing, I realised that the author argument of CHAT_MSG_TEXT_EMOTE was always just the character name instead of the character name and the realm name for players on other realms. This is in contrast to other CHAT_MSG_X events I tested, which always include the realm name in the author argument when the player is from another realm.

I'm posting this here to see if anyone else can confirm this bug before I report it on the official forums.

I should be able to work around this in ServerIgnore, but it's annoying to need to use a specific filter for this one event instead of the generic filter I have in place that works for all events except this one.
Choonstertwo is offline   Reply With Quote
Unread 01-26-14, 06:33 AM   #2
semlar
A Molten Giant
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 504
If it gives you the player's GUID you might be able to use GetPlayerInfoByGUID to fetch their realm.
semlar is online now   Reply With Quote
Unread 01-26-14, 06:52 AM   #3
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 60
Originally Posted by semlar View Post
If it gives you the player's GUID you might be able to use GetPlayerInfoByGUID to fetch their realm.
I looked at that function before, but for some reason I missed the realm return value and thought it didn't tell you the player's realm.

If that works, it should be a better solution than the array of patterns matching each ignored realm I'm using now.
Choonstertwo is offline   Reply With Quote
Unread 01-26-14, 06:55 AM   #4
Resike
A Molten Giant
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 562
Originally Posted by Choonstertwo View Post
I looked at that function before, but for some reason I missed the realm return value and thought it didn't tell you the player's realm.

If that works, it should be a better solution than the array of patterns matching each ignored realm I'm using now.
Not sure thats gonna help you to locate the problem, but sometimes in battlegrounds i can see emotes from cross-realm members, but most of the times i can't. And since you should not be able to see cross-realm emotes, it might be visible because the server thinks we're on the same realm.
Resike is offline   Reply With Quote
Unread 01-26-14, 09:02 AM   #5
Choonstertwo
A Theradrim Guardian
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 60
I ended up rewriting my entire filter function around GetPlayerInfoByGUID, from my testing it always seems to return accurate results for anyone you've seen a chat message from.

I think I will report the issue anyway, it seems like an inconsistency when all the other chat events use the Name-Realm format for the author.

Edit: I've reported it here if anyone wants to follow its status (not that I expect any response to it).

Last edited by Choonstertwo : 01-26-14 at 09:14 AM.
Choonstertwo is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » General Authoring Discussion » Possible Bug In CHAT_MSG_TEXT_EMOTE

Thread Tools
Display Modes

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