View Single Post
04-23-09, 09:16 PM   #3
Mud
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 8
Originally Posted by Shirik View Post
In short, aside from targets which you can directly reference with a unit ID (such as raid1, etc), no, you can't really check for online status without some form of a server request.
Alrighty then.

I'm calling SendAddonMessage multiple times (sending arbitrarily sized data in ~240-byte chunks), so if the target doesn't exist my addon user's chat window is spammed with:

No player named 'foobar' is currently playing.
No player named 'foobar' is currently playing.
No player named 'foobar' is currently playing.
...

I guess I could check for this message and abort my send attempt. Unless y'all can think of a more clever solution...
  Reply With Quote