+01Apr01=======================================================================
+1. changed agwrestart semantics. You need to use main::agwrestart() in your
+crontabs rather than AGWMsg::init();
31Mar01=======================================================================
1. added agwrestart command
2. add Iains Windoze installation manual (g0vgs)
#
my $self = shift;
return (1, $self->msg('e5')) if $self->priv < 5;
-AGWMsg::init();
+main::AGWrestart();
return (1, $self->msg('done'));
sub _error
{
- dbg('agw', "error on AGW connection $addr/$port $!");
+ dbg('err', "error on AGW connection $addr/$port $!");
Msg::set_event_handler($sock, read=>undef, write=>undef, error=>undef);
$sock = undef;
for (%circuit) {
my $mins = int $t / 60;
return sprintf "%d %02d:%02d", $days, $hours, $mins;
}
+
+sub AGWrestart
+{
+ AGWMsg::init(\&new_channel);
+}
+
#############################################################
#
# The start of the main line of code
push @listeners, $conn;
dbg('err', "External Port: $_->[0] $_->[1]");
}
-AGWMsg::init(\&new_channel);
+AGWrestart();
# load bad words
dbg('err', "load badwords: " . (BadWords::load or "Ok"));