Make server blocks default to leaf.
authorMichael Poole <mdpoole@troilus.org>
Fri, 10 Sep 2004 15:08:13 +0000 (15:08 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 10 Sep 2004 15:08:13 +0000 (15:08 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1107 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
doc/example.conf
ircd/ircd_parser.y

index 46417167c00d3a0d6938308fe9cebacb152ac29a..6dd1aedc3480c5cd29d368b1f9730902e9e80a57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,14 @@
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd_parser.y (serverblock): Server blocks should default
+       to CONF_LEAF status.
+
+       * doc/example.conf: Update example to reflect this.
+
 2004-09-10  Michael Poole <mdpoole@troilus.org>
 
        * ircd/parse.c (msg_tree_parse): Reject commands that contain
-       non-alphanumeric characters.
+       non-alphabetic characters.
 
 2004-09-09  Michael Poole <mdpoole@troilus.org>
 
index d6132afdc936ab79806883003724deab82d146eb..c745f8a604b1fc657783b0a4bfdad890b12ad6b5 100644 (file)
@@ -381,8 +381,9 @@ motd {
 #  mask = "servermask";
 #  # No is assumed for these unless you set it to yes.
 #  uworld = no;
-#  leaf = no;
-#  hub = yes;
+#  hub = no;
+#  # Yes is assumed for "leaf" unless you set it to no.
+#  leaf = yes;
 # };
 #
 # Note: (1) These lines are agreed on by every server admin on Undernet;
index e1a0ace201f675f271bcda7cd754158d01731f92..31d3a16ec4842322b6db52bdd34b81523c523a42 100644 (file)
@@ -442,6 +442,7 @@ serverblock: SERVER
 {
  aconf = (struct ConfItem*) MyMalloc(sizeof(*aconf));
  memset(aconf, 0, sizeof(*aconf));
+ aconf->status = CONF_LEAF;
 } '{' serveritems '}'
 {
  if (aconf->status == 0)