projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue K records and start to use them
[spider.git]
/
cmd
/
spoof.pl
diff --git
a/cmd/spoof.pl
b/cmd/spoof.pl
index 8c8fda85c6b516afc3d769eb6e4a4c38a085c5cc..ad2f9b8ccbb408a9b64b15accd907f87b36370a3 100644
(file)
--- a/
cmd/spoof.pl
+++ b/
cmd/spoof.pl
@@
-10,11
+10,12
@@
my ($self, $line) = @_;
my $mycall = $self->call;
my $myuser = $self->user;
my $mycall = $self->call;
my $myuser = $self->user;
+my $mylang = $self->lang;
my ($call, $newline) = split /\s+/, $line, 2;
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'));
}
Log('DXCommand', "$mycall is trying to spoof $call remotely");
return (1, $self->msg('e5'));
}
@@
-25,7
+26,7
@@
if ($self->priv < 9) {
my @out;
$call = uc $call;
my @out;
$call = uc $call;
-my $user = DXUser->get($call);
+my $user = DXUser->get
_current
($call);
unless ($user) {
$user = DXUser->new($call);
push @out, $self->msg('spf1', $call);
unless ($user) {
$user = DXUser->new($call);
push @out, $self->msg('spf1', $call);
@@
-39,5
+40,6
@@
my @in = $self->run_cmd($newline);
push @out, map {"spoof $call: $_"} @in;
$self->call($mycall);
$self->user($myuser);
push @out, map {"spoof $call: $_"} @in;
$self->call($mycall);
$self->user($myuser);
+$self->lang($mylang);
return (1, @out);
return (1, @out);