projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
71ce25e
)
check for some text
author
minima
<minima>
Sun, 9 Sep 2001 11:18:21 +0000
(11:18 +0000)
committer
minima
<minima>
Sun, 9 Sep 2001 11:18:21 +0000
(11:18 +0000)
cmd/set/var.pl
patch
|
blob
|
history
cmd/show/var.pl
patch
|
blob
|
history
diff --git
a/cmd/set/var.pl
b/cmd/set/var.pl
index d2ea1d1380ae4875e25d6c5321919febf7f0c314..b8d81d264fae7fa9bc3146d95c3de7f95d9c9b3a 100644
(file)
--- a/
cmd/set/var.pl
+++ b/
cmd/set/var.pl
@@
-10,6
+10,8
@@
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
+return (1, $self->msg('e9')) unless $line;
+
my ($var, $rest) = split /=|\s+/, $line, 2;
$rest =~ s/^=\s*//;
Log('DXCommand', $self->call . " set $var = $rest" );
my ($var, $rest) = split /=|\s+/, $line, 2;
$rest =~ s/^=\s*//;
Log('DXCommand', $self->call . " set $var = $rest" );
diff --git
a/cmd/show/var.pl
b/cmd/show/var.pl
index 3f0715713a4f64c20d71ea209dd527a16731259c..29d7b350831626a05aaa57de7e7ca9ddcd5b62eb 100644
(file)
--- a/
cmd/show/var.pl
+++ b/
cmd/show/var.pl
@@
-10,6
+10,7
@@
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
+return (1, $self->msg('e9')) unless $line;
my @f = split /\s+/, $line;
my $f;
my @out;
my @f = split /\s+/, $line;
my $f;
my @out;