projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
increase interval between auto for/opers and add up to 9 days of randomi-
[spider.git]
/
perl
/
DXCommandmode.pm
diff --git
a/perl/DXCommandmode.pm
b/perl/DXCommandmode.pm
index 4601ec21df0ca34d01ca99b7beb64f9f9996bdd8..d562437a6460d3ca380803db27784b3d2417ba15 100644
(file)
--- 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 || "";
# 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");
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
}
# run a script send the output to the punter