X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FExtMsg.pm;h=a55de7e7600271846c0f6cf95523dedf727e401f;hb=681ed7b3c6d79228a68054489058b619f62974bf;hp=064bd90af487df88730f7cd8b465115e1f1042c8;hpb=cbb522ef802d48991734a4ce803fa6ffa9774588;p=spider.git diff --git a/perl/ExtMsg.pm b/perl/ExtMsg.pm index 064bd90a..a55de7e7 100644 --- a/perl/ExtMsg.pm +++ b/perl/ExtMsg.pm @@ -19,6 +19,8 @@ use Msg; use DXVars; use DXUtil; use DXDebug; +use DXTimer; + use IO::File; use IO::Socket; use IPC::Open3; @@ -132,12 +134,13 @@ sub dequeue $conn->disconnect; } } elsif (is_callsign($msg)) { + my $call = normalise_call($msg); if ($main::allowslashcall || $msg !~ m|/|) { my $sort = $conn->{csort}; $sort = 'local' if $conn->{peerhost} =~ /127\.\d+\.\d+\.\d+$/ || $conn->{peerhost} eq '::1'; my $uref; - if ($main::passwdreq || ($uref = DXUser::get_current($msg)) && $uref->passwd ) { - $conn->conns($msg); + if ($main::passwdreq || ($uref = DXUser::get_current($call)) && $uref->passwd ) { + $conn->conns($call); $conn->{state} = 'WP'; $conn->{decho} = $conn->{echo}; $conn->{echo} = 0; @@ -302,7 +305,7 @@ sub _dotimeout dbg("connect $conn->{cnum}: timeout set to $val") if isdbg('connect'); $conn->{timeout}->del if $conn->{timeout}; $conn->{timeval} = $val; - $conn->{timeout} = Timer->new($val, sub{ &_timedout($conn) }); + $conn->{timeout} = DXTimer->new($val, sub{ &_timedout($conn) }); } sub _dolineend