Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Net::IRC - how to check is user online?

by kyle (Abbot)
on Jun 08, 2007 at 14:43 UTC ( [id://620029]=note: print w/replies, xml ) Need Help??


in reply to Net::IRC - how to check is user online?

I haven't used Net::IRC, but from my quick look through the documentation, it looks as if it's all event-based, like a lot of IRC software I've seen. Given that, what you'll need to do is set up an event handler for when your 'whois' command returns before sending the command. The sequence will go something like this:

  1. You create and register an event handler.
  2. You send your 'whois' command.
  3. The server responds, and Net::IRC calls the handler that you registered.
  4. The handler can then look at the response and do something useful.

I don't know for sure, but I wouldn't be surprised if there are separate types of events for when a user is online and when the server responds that there's nobody here by that nick.

  • Comment on Re: Net::IRC - how to check is user online?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://620029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-19 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found