X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=47e25c0b80c8fc56e96649934c635442f7a02507;hb=81beb992bd4264a58ff5906a634ed0b2c95df2ae;hp=72d65cb316ebd05d0d36d76fd7330bcfd7a28d50;hpb=211b54d504170a8c9dad2bf25b9ed686d5eeac11;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 72d65cb3..47e25c0b 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -29,6 +29,7 @@ use DXDb; use AnnTalk; use WCY; use Sun; +use Internet; use strict; use vars qw(%Cache %cmd_cache $errstr %aliases $scriptbase); @@ -302,7 +303,7 @@ sub run_cmd # split the command line up into parts, the first part is the command my ($cmd, $args) = split /\s+/, $cmdline, 2; - $args = "" unless $args; + $args = "" unless defined $args; if ($cmd) { @@ -314,7 +315,7 @@ sub run_cmd my $acmd = CmdAlias::get_cmd($cmd); if ($acmd) { ($cmd, $args) = split /\s+/, "$acmd $args", 2; - $args = "" unless $args; + $args = "" unless defined $args; dbg('command', "aliased cmd: $cmd $args"); }