From ed6e4ea0bc9fccf50a6a6087dbcd68c8788165d3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 18 Feb 2003 06:57:07 +0000 Subject: Move do_chainpings yes/no from pingd to Chain.pm Allow fromlines building to be disabled --- Echolot/Chain.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Echolot/Chain.pm') 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 -# $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; -- cgit v1.2.3