Code:
-- get number of online friends
local _,num=BNGetNumFriends()
-- cycle through friends to find "Bob"
for i=1,num do
local id,name=BNGetFriendInfo(i)
if (name=="Bob") then
BNSendWhisper(id, "Hi Bob!")
else
print("Bob is not online.")
end
end
Even if Bob is online, it never sends him the message and goes to "Bob is not online." Any ideas?