X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=d562437a6460d3ca380803db27784b3d2417ba15;hb=aac4d7dbc1d3c34bf73147a679673d346894984f;hp=4601ec21df0ca34d01ca99b7beb64f9f9996bdd8;hpb=02177c2906cf58834b9cec237b34698bb83f73e5;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 4601ec21..d562437a 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -155,9 +155,9 @@ sub start # do we need to send a forward/opernam? my $lastoper = $user->lastoper || 0; my $homenode = $user->homenode || ""; - if ($homenode eq $main::mycall && $lastoper + $DXUser::lastoperinterval < $main::systime) { + if ($homenode eq $main::mycall && $main::systime >= $lastoper + $DXUser::lastoperinterval) { run_cmd($main::me, "forward/opernam $call"); - $user->lastoper($main::systime); + $user->lastoper($main::systime + ((int rand(10)) * 86400)); } # run a script send the output to the punter