I'm having a problem tring to communicate between clients with my addon... this code (ChatMsg is my local display function):
Code:
local target = string.sub(msg, spos, epos)
ChatMsg(MLLID.." ".. target)
SendAddonMessage(MMLID, "share", "WHISPER", target)
results in a display of my prefix and a valid character name for example:
So I know I am sending a proper set of arguments, yet when someone invokes the function and I receive the event CHAT_MSG ADDON:
Code:
elseif (event == "CHAT_MSG_ADDON") then
ChatMsg(MLLTag.."("..arg1..")")
if(arg1 == MLLID) then
I get nothing (ie. arg1 is nil) for my own addon:
Code:
MasterLewtLogger 2.04.01: ()
though all other addons give me their prefix... my chat is spammed with messages like:
Code:
MasterLewtLogger 2.04.01: (QuGu)
Where might this be screwing up...?
any ideas?