Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2004-09-10 15:08:23 UTC
Modified files:
ircd/ircd_parser.y doc/example.conf ChangeLog
Log message:
Make server blocks default to leaf.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.446 ircu2.10/ChangeLog:1.447
--- ircu2.10/ChangeLog:1.446 Fri Sep 10 07:50:39 2004
+++ ircu2.10/ChangeLog Fri Sep 10 08:08:13 2004
@@ -1,7 +1,14 @@
2004-09-10 Michael Poole <[EMAIL PROTECTED]>
+ * 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 <[EMAIL PROTECTED]>
+
* ircd/parse.c (msg_tree_parse): Reject commands that contain
- non-alphanumeric characters.
+ non-alphabetic characters.
2004-09-09 Michael Poole <[EMAIL PROTECTED]>
Index: ircu2.10/doc/example.conf
diff -u ircu2.10/doc/example.conf:1.30 ircu2.10/doc/example.conf:1.31
--- ircu2.10/doc/example.conf:1.30 Wed Jun 30 15:59:10 2004
+++ ircu2.10/doc/example.conf Fri Sep 10 08:08:12 2004
@@ -381,8 +381,9 @@
# 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: ircu2.10/ircd/ircd_parser.y
diff -u ircu2.10/ircd/ircd_parser.y:1.20 ircu2.10/ircd/ircd_parser.y:1.21
--- ircu2.10/ircd/ircd_parser.y:1.20 Wed Aug 18 21:00:51 2004
+++ ircu2.10/ircd/ircd_parser.y Fri Sep 10 08:08:12 2004
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
- * $Id: ircd_parser.y,v 1.20 2004/08/19 04:00:51 entrope Exp $
+ * $Id: ircd_parser.y,v 1.21 2004/09/10 15:08:12 entrope Exp $
*/
%{
@@ -442,6 +442,7 @@
{
aconf = (struct ConfItem*) MyMalloc(sizeof(*aconf));
memset(aconf, 0, sizeof(*aconf));
+ aconf->status = CONF_LEAF;
} '{' serveritems '}'
{
if (aconf->status == 0)
----------------------- End of diff -----------------------