fix sh/425 (mostly - bull doesn't work)
authorDirk Koopman <djk@tobit.co.uk>
Fri, 12 May 2017 17:56:30 +0000 (18:56 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Fri, 12 May 2017 17:56:30 +0000 (18:56 +0100)
Changes
cmd/show/425.pl

diff --git a/Changes b/Changes
index 6386b76ed87d7bb207135ff1537dbab4eb950774..932b7b85b8a708eed7ba77db2a1977c656fcfe5a 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+12May17=======================================================================
+1. Fix sh/425 (mostly)
 05May17=======================================================================
 1. Add CTY-2705 prefixes
 04Apr17=======================================================================
index 938747fbf8cf4b9870a713d86edc5fb0cd9c842f..5a2f7d41a66f3073c3b054d37d4414566400fe04 100644 (file)
@@ -17,10 +17,10 @@ sub handle
        return (1, $self->msg('e24')) unless $Internet::allow;
        return (1, "SHOW/425 <callsign>\nSHOW/425 CAL\nSHOW/425 BULL <bulletin number>\n e.g. SH/425 IQ5BL, SH/425 CAL, SH/425 BUL 779\n") unless @list;
 
-       my $target = $Internet::dx425_url || 'www.iz5fsa.net';
+       my $target = $Internet::dx425_url || 'www.425dxn.org';
        my $port = 80;
 
-       dbg(join('|', @list)) if isdbg('425');
+       dbg('sh/425: args=' . join('|', @list)) if isdbg('425');
        if ($list[0] eq "CAL") {
                $op="op=cal";
        } elsif ($list[0] eq "BULL") {
@@ -29,7 +29,9 @@ sub handle
                $op="op=search&query=$list[0]";
        }
        
-       my $path = "/425dxn/spider.php?$op";
+       my $path = "/spider.php?$op";
+
+       dbg("sh/425: target='$target' path='$path'") if isdbg('425'); 
        
        Log('call', "$call: show/425 \U$op");
        my $conn = AsyncMsg->get($self, $target, $path, prefix=>'425> ', 'User-Agent' => qq{DxSpider;$main::version;$main::build;$^O;$main::mycall;$call;$list[0]});