View Single Post
12-30-13, 02:22 PM   #11
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by Wimpface View Post
EDIT#2: Okay, I've done some testing with a friend. With the addon enabled, I don't even see his messages. They're just completely gone. Without it, it displays just fine.(...)
IIRC from playing with ChatFrame_AddMessageEventFilter, the first return value of ChatFrame_AddMessageEventFilter is checked in boolean mode, that means if the first value equates to true, the message is filtered(and being prevented from passing towards the :AddMessage() method). The first return value in the code in XRealIDColors.lua(horrible name by the way ) on line 54 is always passing the third argument passed to the function(message), which always equates to true, as a result, the message is hidden.

The correct way to do it, is AFAIK the following:
lua Code:
  1. return false, message, sender, ...
instead of
lua Code:
  1. return message, sender, ...

Aside from that, the code creates 2 tables for each bnet whisper. Blegh :P

Last edited by ravagernl : 12-30-13 at 02:24 PM.
  Reply With Quote