summaryrefslogtreecommitdiff
path: root/Echolot/Chain.pm
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-02-18 06:57:07 +0000
committerPeter Palfrader <peter@palfrader.org>2003-02-18 06:57:07 +0000
commited6e4ea0bc9fccf50a6a6087dbcd68c8788165d3 (patch)
tree2ad55027c9a6deb0eaf561e9821e94c00eb8b4b8 /Echolot/Chain.pm
parentb54dc8ce042ed797dd717edcdb85cc040d067cee (diff)
Move do_chainpings yes/no from pingd to Chain.pmsnapshot/2003-02-18
Allow fromlines building to be disabled
Diffstat (limited to 'Echolot/Chain.pm')
-rw-r--r--Echolot/Chain.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Echolot/Chain.pm b/Echolot/Chain.pm
index 1a380d7..c2c1f56 100644
--- a/Echolot/Chain.pm
+++ b/Echolot/Chain.pm
@@ -1,7 +1,7 @@
package Echolot::Chain;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: Chain.pm,v 1.9 2003/02/18 06:38:06 weasel Exp $
+# $Id: Chain.pm,v 1.10 2003/02/18 06:57:07 weasel Exp $
#
=pod
@@ -128,6 +128,8 @@ sub get_latest_key($$) {
};
sub send_pings($;$$) {
+ return 1 unless Echolot::Config::get()->{'do_chainpings'};
+
my ($scheduled_for, $which1, $which2) = @_;
$which1 = '' unless defined $which1;