"Rocco Caputo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You should do the cleanup in two stages.
>
> sub cleanup {
> $_[KERNEL]->post( magnet => quit => "Bye." );
> }
>
> sub irc_disconnected {
> my ($server) = $_[ARG0];
> print "Lost connection to server $server.\n";
> $_[KERNEL]->post( magnet => unregister => "all" );
> }
>
You don't specify how to call the subroutine irc_disconnected. Is this
something that is called automatically upon disconnect (via the 'quit') or
must I call this from within the cleanup subroutine? Is the ARG0 being
passed from this automatic call?
Thanks for the help!