WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Possible Bug In CHAT_MSG_TEXT_EMOTE (https://www.wowinterface.com/forums/showthread.php?t=48872)

Choonstertwo 01-25-14 10:48 PM

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.

semlar 01-26-14 06:33 AM

If it gives you the player's GUID you might be able to use GetPlayerInfoByGUID to fetch their realm.

Choonstertwo 01-26-14 06:52 AM

Quote:

Originally Posted by semlar (Post 290218)
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.

Resike 01-26-14 06:55 AM

Quote:

Originally Posted by Choonstertwo (Post 290219)
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.

Choonstertwo 01-26-14 09:02 AM

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).


All times are GMT -6. The time now is 06:09 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI