Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

POE::Component::IRC catching signals...

by japhy (Canon)
on Jul 14, 2004 at 16:25 UTC ( [id://374341]=perlquestion: print w/replies, xml ) Need Help??

japhy has asked for the wisdom of the Perl Monks concerning the following question:

I cannot get my POE::Component::IRC bot to catch any signal except "INT". I'm modifying the dicebot.pl example that comes with the module.
# this one works fine... $kernel->sig( INT => "sigint" ); # this one does nothing! $kernel->sig( USR1 => "interactive" );
Yes, there is an "interactive" method. And I've tried numerous different signal names. What am I missing?
_____________________________________________________
Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re: POE::Component::IRC catching signals...
by roju (Friar) on Jul 14, 2004 at 17:55 UTC

    Just to double-check - there's an interactive method, but is there an "interactive" event registered that points to your method?

    I'm looking at this code as I ask.

      You got it. Thanks.
      _____________________________________________________
      Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
      How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found