Thread Tools Display Modes
06-27-08, 09:14 PM   #1
Everglow
An Aku'mai Servant
 
Everglow's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 36
SendAddonMessage() problem

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:
Code:
 
MMLx Magrra
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?
__________________
Everglow - Sisters of Elune/US

Last edited by Everglow : 06-27-08 at 09:18 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » SendAddonMessage() problem


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