From: Michael Poole Date: Sat, 29 Apr 2006 02:21:56 +0000 (+0000) Subject: Fix Admin block documentation and behavior (SF bug#1477672). X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=f43dfd02e34af89b29c2cd40f4d9b94f79c7d909 Fix Admin block documentation and behavior (SF bug#1477672). git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1644 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 87f4901..fd6237c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-04-28 Michael Poole + + * doc/example.conf (Admin): Fix documentation of which line can be + listed twice. + + * ircd/ircd_parser.y (adminblock): Allow admin information to be + changed via /rehash. + 2006-04-06 Michael Poole * ircd/s_auth.c (start_auth): Add client to list after getting diff --git a/doc/example.conf b/doc/example.conf index 46f2f9b..2833ca0 100644 --- a/doc/example.conf +++ b/doc/example.conf @@ -82,9 +82,9 @@ General { # This sets information that can be retrieved with the /ADMIN command. # It should contain at least an admin Email contact address. Admin { + # At most two location lines are allowed... Location = "The University of London"; - # At most two contact lines are allowed... - Contact = "Undernet IRC server"; + Location = "Undernet IRC server"; Contact = "IRC Admins "; }; diff --git a/ircd/ircd_parser.y b/ircd/ircd_parser.y index 692616b..758e080 100644 --- a/ircd/ircd_parser.y +++ b/ircd/ircd_parser.y @@ -320,7 +320,14 @@ generalvhost: VHOST '=' QSTRING ';' MyFree($3); }; -adminblock: ADMIN '{' adminitems '}' ';' +adminblock: ADMIN +{ + MyFree(localConf.location1); + MyFree(localConf.location2); + MyFree(localConf.contact); + localConf.location1 = localConf.location2 = localConf.contact = NULL; +} +'{' adminitems '}' ';' { if (localConf.location1 == NULL) DupString(localConf.location1, "");