fix uninitialised variable in non-xml installations
[spider.git] / cmd / wx.pl
index af7cd0abd785a65ba6f14dc1c4204e981a5500bb..22b5e0ccc262075b1908d6802837a766c520464d 100644 (file)
--- a/cmd/wx.pl
+++ b/cmd/wx.pl
@@ -23,6 +23,8 @@ my $from = $self->call;
 my $t = ztime(time);
 my $tonode;
 my $sysopflag;
+return (1, $self->msg('e5')) if $self->remotecmd || $self->inscript;
+return (1, $self->msg('e28')) unless $self->registered;
 
 if ($sort eq "FULL") {
   $line =~ s/^$f[0]\s+//;    # remove it