X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fqrz.pl;h=6782b1a16377d8c5cf0941c2aedf314e8a5b756c;hb=725d28d2ebfb1fd2ae83ba10d68c7337678a5c1b;hp=3e928f5874c58c57558ce51c1be4104899a0f80c;hpb=564b5b3a0c2fa40f00e015f8b05f3a87ea4e7e26;p=spider.git diff --git a/cmd/show/qrz.pl b/cmd/show/qrz.pl index 3e928f58..6782b1a1 100644 --- a/cmd/show/qrz.pl +++ b/cmd/show/qrz.pl @@ -11,7 +11,7 @@ use vars qw (%allowed); -%allowed = qw(call 1 fname 1 name 1 addr2 1 state 1 country 1 lat 1 lon 1 county 1 moddate 1 qslmgr 1 grid 1 ); +%allowed = qw(call 1 fname 1 name 1 addr2 1 state 1 country 1 lat 1 lon 1 county 1 moddate 1 qslmgr 1 grid 1 Error 1 ); sub _send { @@ -44,9 +44,9 @@ sub filter dbg("qrz: $state $msg") if isdbg('qrz'); if ($state eq 'blank') { - if ($msg =~ /^/) { + if ($msg =~ /^\s*/) { $conn->{state} = 'go'; - } elsif ($msg =~ /^/) { + } elsif ($msg =~ /^\s*/) { _send($conn, $msg, $dxchan); } } elsif ($state eq 'go') { @@ -70,7 +70,7 @@ sub handle my $target = $Internet::qrz_url || 'xmldata.qrz.com'; my $port = 80; my $path = qq{/xml/current/?callsign=$line;username=$Internet::qrz_uid;password=$Internet::qrz_pw;agent=dxspider}; - dbg("qrz: $path") if isdbg('qrz'); + dbg("qrz: $target:$port$path") if isdbg('qrz'); Log('call', "$call: show/qrz \U$line"); my $conn = AsyncMsg->get($self, $target, $port, $path, filter=>\&filter, prefix=>'qrz> ', on_disc=>\&_on_disc);