View Single Post
12-15-17, 03:42 PM   #1
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
Question BNGetFriendInfo issue

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?
  Reply With Quote