X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fspoof.pl;h=c6d93e78da0bb8951d9aa07f978ebf3d0f7f0d85;hb=d0b55caa8a609da9ccc5ea59bb376795a99d04b5;hp=5336a3248c2d673face8f0fa0b5513f144e0b34d;hpb=5f2487385b59dbe88dc763fa9c26fe5a9b4a6b30;p=spider.git diff --git a/cmd/spoof.pl b/cmd/spoof.pl index 5336a324..c6d93e78 100644 --- a/cmd/spoof.pl +++ b/cmd/spoof.pl @@ -13,7 +13,7 @@ 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 || $self->inscript) { Log('DXCommand', "$mycall is trying to spoof $call remotely"); @@ -26,7 +26,7 @@ if ($self->priv < 9) { my @out; $call = uc $call; -my $user = DXUser->get_current($call); +my $user = DXUser::get_current($call); unless ($user) { $user = DXUser->new($call); push @out, $self->msg('spf1', $call); @@ -35,7 +35,8 @@ unless ($user) { # set up basic environment $self->call($call); $self->user($user); -Log('DXCommand', "spoof '$newline' as $call by $mycall"); +my $addr = $self->hostname || '127.0.0.1' +Log('cmd', "$self->{call}|$addr|spoof|$line"); my @in = $self->run_cmd($newline); push @out, map {"spoof $call: $_"} @in; $self->call($mycall);