}
}
$t->close;
+ push @out, $self->msg('e3', 'qrz.com', $call) unless @out;
} else {
push @out, $self->msg('e18', 'QRZ.com');
}
logininfo => '9,Login info req,yesno',
talklist => '0,Talk List,parray',
cluster => '5,Cluster data',
+ isbasic => '9,Internal Connection',
);
# object destruction
$out_lineend = "\r\n";
}
$/ = $mynl;
+ $out_lineend = $mynl;
}
# handle incoming messages
$sock->output_record_separator('');
$sock->option_accept(Dont => TELOPT_ECHO, Wont => TELOPT_ECHO);
$sock->open($host) or die "Can't connect to $host port $port $!";
+ if ($port == 23) {
+ $sock->telnetmode(1);
+ $sock->option_send(Dont => TELOPT_ECHO, Wont => TELOPT_ECHO) if $port == 23;
+ } else {
+ $sock->telnetmode(0);
+ }
$sock->binmode(0);
$mode = 3;
} elsif ($sort eq 'ax25' || $sort eq 'prog') {
dbg('err', "load badwords: " . (BadWords::load or "Ok"));
# prime some signals
-$SIG{INT} = \&cease;
-$SIG{TERM} = \&cease;
-$SIG{HUP} = 'IGNORE';
-$SIG{CHLD} = sub { $zombies++ };
-
-$SIG{PIPE} = sub { dbg('err', "Broken PIPE signal received"); };
-$SIG{IO} = sub { dbg('err', "SIGIO received"); };
-$SIG{WINCH} = $SIG{STOP} = $SIG{CONT} = 'IGNORE';
-$SIG{KILL} = 'DEFAULT'; # as if it matters....
-
-# catch the rest with a hopeful message
-for (keys %SIG) {
- if (!$SIG{$_}) {
-# dbg('chan', "Catching SIG $_");
- $SIG{$_} = sub { my $sig = shift; DXDebug::confess("Caught signal $sig"); };
+unless ($^O =~ /^MS/) {
+ $SIG{INT} = \&cease;
+ $SIG{TERM} = \&cease;
+ $SIG{HUP} = 'IGNORE';
+ $SIG{CHLD} = sub { $zombies++ };
+
+ $SIG{PIPE} = sub { dbg('err', "Broken PIPE signal received"); };
+ $SIG{IO} = sub { dbg('err', "SIGIO received"); };
+ $SIG{WINCH} = $SIG{STOP} = $SIG{CONT} = 'IGNORE';
+ $SIG{KILL} = 'DEFAULT'; # as if it matters....
+
+ # catch the rest with a hopeful message
+ for (keys %SIG) {
+ if (!$SIG{$_}) {
+ # dbg('chan', "Catching SIG $_");
+ $SIG{$_} = sub { my $sig = shift; DXDebug::confess("Caught signal $sig"); };
+ }
}
}