PtokaX forum

Development Section => Your Developing Problems => Topic started by: HaArD on 12 November, 2003, 05:40:21

Title: Test "Nick" to see if user is online?
Post by: HaArD on 12 November, 2003, 05:40:21
Is there a way to determine if "Nick" is currently online?

I have seen workarounds that monitor logins and disconnects and track currently connected users that way but it's.... inelegant.

HaArD
Title:
Post by: plop on 12 November, 2003, 07:27:14
GetItemByName(nick) - Returns user object of the nick
  nick - the nick of user.
it returns nil if the user is not in the hub.
if GetItemByName(nick) then
   user:SendData(Bot, nick.." is online")
else
   user:SendData(Bot, nick.." is offline")
end
plop
Title:
Post by: HaArD on 12 November, 2003, 13:32:42
Sweet, thx Plop!!