+2005-04-23 Michael Poole <mdpoole@troilus.org>
+
+ * doc/example.conf (UWorld): Illustrate new config extension.
+
+ * ircd/ircd_parser.y (uworldblock): Do the expected thing when
+ multiple name= entries are present.
+
2005-04-22 Michael Poole <mdpoole@troilus.org>
* RELEASE.NOTES: Silence exceptions use ~, not -. Oops!
# name = "relservername";
# };
#
+# You may have have more than one name listed in each block.
+#
# Note: (1) These lines are agreed on by every server admin on Undernet;
# (2) These lines must be the same on every single server, or results
# will be disasterous; (3) This is a useful feature, not something that
UWorld {
name = "uworld.eu.undernet.org";
-};
-UWorld {
name = "uworld2.undernet.org";
-};
-UWorld {
name = "uworld.undernet.org";
-};
-UWorld {
name = "channels.undernet.org";
-};
-UWorld {
name = "channels2.undernet.org";
-};
-UWorld {
name = "channels3.undernet.org";
-};
-UWorld {
name = "channels4.undernet.org";
-};
-UWorld {
name = "channels5.undernet.org";
-};
-UWorld {
name = "channels6.undernet.org";
};
maxlinks = $3;
};
-uworldblock: UWORLD '{' uworlditems '}' ';'
-{
- if (name)
- {
- struct ConfItem *aconf = make_conf(CONF_UWORLD);
- aconf->host = name;
- }
- else
- {
- MyFree(name);
- parse_error("Bad UWorld block");
- }
- name = NULL;
-};
+uworldblock: UWORLD '{' uworlditems '}' ';';
uworlditems: uworlditem uworlditems | uworlditem;
uworlditem: uworldname | error;
uworldname: NAME '=' QSTRING ';'
{
- MyFree(name);
- DupString(name, $3);
+ struct ConfItem *aconf;
+ aconf = make_conf(CONF_UWORLD);
+ DupString(aconf->host, $3);
};
operblock: OPER '{' operitems '}' ';'