View Single Post
01-05-15, 10:51 AM   #29
atl77
A Chromatic Dragonspawn
Join Date: Oct 2014
Posts: 179
Originally Posted by Rythal View Post
something like

if UnitIsConnected(self.Friends[self.PosSendNext]) then
self:Send ("W", msg, self.Friends[self.PosSendNext])
end

Edit: Hrmm no, that won't work as we don't have the unitID only the name.
It also won't work because (and I quote the documentation of UnitID about player name): "This must be spelled exactly and will be invalid if the named player is not a part of your party or raid. As with all other UnitIDs, it is not case sensitive."

GetFriendInfo won't probably help either, because it would suffer from the same inconvenient inconsistency about not noticing when someone goes offline in time.