]> dxcluster.net Git - spider.git/commitdiff
fix DXProt.pm
authorDirk Koopman <djk@tobit.co.uk>
Fri, 17 Apr 2020 14:38:08 +0000 (15:38 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Fri, 17 Apr 2020 14:38:08 +0000 (15:38 +0100)
perl/DXProt.pm

index 78c5526b4ce4fd67f73d4d168a6f0c6bdb00b316..4510714684ebd7b83db6aa862b08e587a3d13309 100644 (file)
@@ -1119,7 +1119,6 @@ sub process_rcmd
 {
        my ($self, $tonode, $fromnode, $user, $cmd) = @_;
 
-       Log('rcmd', 'in', ($ref->{priv}||0), $fromnode, $cmd);
        if ($tonode eq $main::mycall) {
                my $ref = DXUser::get_current($fromnode);
                unless ($ref && UNIVERSAL::isa($ref, 'DXUser')) {
@@ -1127,6 +1126,7 @@ sub process_rcmd
                        $self->send_rcmd_reply($main::mycall, $fromnode, $user, "sorry...!");
                        return;
                }
+               Log('rcmd', 'in', ($ref->{priv}||0), $fromnode, $cmd);
                my $cref = Route::Node::get($fromnode);
                unless ($cref && UNIVERSAL::isa($cref, 'Route')) {
                        dbg("DXProt process_rcmd: Route $fromnode isn't a reference (tell G1TLH)");