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'));
}
push @out, map {"spoof $call: $_"} @in;
$self->call($mycall);
$self->user($myuser);
+$self->lang($mylang);
return (1, @out);