From 92ca78e95bb10e69d5484ed79801c125c789a118 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 19 Mar 2005 23:04:08 +0000 Subject: [PATCH] Avoid syntax error when importing leaf servers from an old config. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1328 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 7 +++++++ doc/example.conf | 4 +--- tools/convert-conf.py | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c404bdd..0e8f7b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-03-19 Michael Poole + + * doc/example.conf (Connect): Remove a buggy comment about leaf + directives; refer the reader to the Connect block instead. + + * tools/convert-conf.py: Set "leaf;" rather than "leaf = yes;" + 2005-03-19 Michael Poole * doc/example.conf (Operator): Correct the comment explaining diff --git a/doc/example.conf b/doc/example.conf index 92eedc7..b9c5d78 100644 --- a/doc/example.conf +++ b/doc/example.conf @@ -409,9 +409,7 @@ motd { # assigned one or two uplinks to which your server can connect. # If your uplink(s) also connect to other servers than yours (which is # probable), you need to define your uplink as being allowed to "hub". -# To do this, set "hub = yes;" -# You can also force a server(even one that doesn't connect to you) -# to be a leaf with "leaf = yes;" +# See the Connect block documentation for details on how to do that. UWorld { name = "uworld.eu.undernet.org"; diff --git a/tools/convert-conf.py b/tools/convert-conf.py index 825b03f..e91aa3d 100755 --- a/tools/convert-conf.py +++ b/tools/convert-conf.py @@ -22,7 +22,7 @@ # Usage: # convert-conf.py < old.conf > new.conf # -# $Id: convert-conf.py,v 1.2 2005-02-19 21:50:48 isomer Exp $ +# $Id: convert-conf.py,v 1.3 2005-03-19 23:04:07 entrope Exp $ # import sys @@ -249,7 +249,7 @@ if len(connects.keys()): if connects[i].has_key("hub"): print "\thub = \"%s\";" % qstr(connects[i]["hub"]) else: - print "\tleaf = \"yes\";" + print "\tleaf;" print "};" print -- 2.20.1