X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fspoof.pl;h=ad2f9b8ccbb408a9b64b15accd907f87b36370a3;hb=1aac4bfce7659fc802741267238f7cc008a97ca7;hp=7b9e20d47cb1688f3c515cb0d44540c8e8393464;hpb=6c38bca91e6b75002e15cce29c45a894f675e22e;p=spider.git diff --git a/cmd/spoof.pl b/cmd/spoof.pl index 7b9e20d4..ad2f9b8c 100644 --- a/cmd/spoof.pl +++ b/cmd/spoof.pl @@ -10,11 +10,12 @@ my ($self, $line) = @_; my $mycall = $self->call; my $myuser = $self->user; +my $mylang = $self->lang; my ($call, $newline) = split /\s+/, $line, 2; -return (1, $self->msg('nodee1', $call)) if DXChannel->get($call); +return (1, $self->msg('nodee1', $call)) if DXChannel::get($call); -if ($self->remotecmd) { +if ($self->remotecmd || $self->inscript) { Log('DXCommand', "$mycall is trying to spoof $call remotely"); return (1, $self->msg('e5')); } @@ -39,5 +40,6 @@ my @in = $self->run_cmd($newline); push @out, map {"spoof $call: $_"} @in; $self->call($mycall); $self->user($myuser); +$self->lang($mylang); return (1, @out);