change charlie's date
[spider.git] / cmd / demonstrate.pl
index 31426986291cd22f8c533cc0c2a211985350d68e..7ef0277ead9151680821f25abf82f25298302f26 100644 (file)
@@ -12,9 +12,11 @@ my ($self, $line) = @_;
 my ($call, $newline) = split /\s+/, $line, 2;
 $call = uc $call;
 my $dxchan = DXChannel->get($call);
+my $mycall = $self->call;
 
 return (1, $self->msg('e7', $call)) unless $dxchan;
-if ($self->remotecmd) {
+return (1, $self->msg('e31', $call)) unless $dxchan->is_user;
+if ($self->remotecmd || $self->inscript) {
        Log('DXCommand', "$mycall is trying to 'demo' to $call remotely");
        return (1, $self->msg('e5'));
 }