Module: ngircd.git Branch: master Commit: 3460c87c589b0bfd735dbdd761e9a508a2d9a3c7 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=3460c...
Author: Florian Westphal fw@strlen.de Date: Sun Jan 9 22:19:17 2011 +0100
conf: fix 'unknown section' FEATURES parse error
pointed out by Alex: ngircd.conf, line 105: Unknown section "[Features]"!
---
src/ngircd/conf.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 5819ef1..02f5520 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -769,7 +769,8 @@ Read_Config( bool ngircd_starting ) /* Is this the beginning of a new section? */ if(( str[0] == '[' ) && ( str[strlen( str ) - 1] == ']' )) { strlcpy( section, str, sizeof( section )); - if( strcasecmp( section, "[GLOBAL]" ) == 0 ) + if (strcasecmp( section, "[GLOBAL]" ) == 0 || + strcasecmp( section, "[FEATURES]") == 0) continue;
if( strcasecmp( section, "[SERVER]" ) == 0 ) {