Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: How do I shut down a Bot::BasicBot?

by SuicideJunkie (Vicar)
on Jul 15, 2010 at 14:33 UTC ( #849783=note: print w/replies, xml ) Need Help??

in reply to How do I shut down a Bot::BasicBot?

Did you want something fancier than exit 0;?

Replies are listed 'Best First'.
Re^2: How do I shut down a Bot::BasicBot?
by myuserid7 (Scribe) on Jul 15, 2010 at 14:59 UTC
    exit 0 doesn't send a quit message, and I get the error: (in cleanup) Can't call method "post" on an undefined value at /usr/local/lib/perl5/site_perl/5.10.0/Bot/ line 1500 during global destruction. I'm looking for a way to shut it down cleanly.

      I thought you said that it quit IRC correctly. Is that not the case, or did you replace the shutdown call with the exit?

        If I do an exit 0 after calling shutdown() it doesn't send the quit message to IRC and just exits the script right away.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2023-09-22 12:45 GMT
Find Nodes?
    Voting Booth?

    No recent polls found