Hi all,
Been working on a module but I'm pretty new to this. Basically what I am creating is and admin !announce (where the announce will go to any raidleaders or admins that are online).
However I seem to have run into a snag.
to do this, I loop over admin_members and wanted to check if each admin was online then send the tell. At first, I repurposed functions from Is.php but this doesnt seem to work as it never returns them as being online even when I can see they are. Talked with some people and we think it's due to the way the 1k roster handles checking if people are online through it's buddy list. Anyways this is where I get lost. I'm not really sure how !is works and the buddy system works and was hoping someone could point me in the right direction.
here's an example of one of the functions I tried. Also tried using the bot function to add the buddy right before using the buddy_online() but that didnt seem to matter either.
function is_online($who)
{
if ($this -> bot -> aoc -> buddy_online($who))
return true;
else
return false;
}
any help or advice would be greatly appreciated