From: Florian Westphal Date: Sun, 9 Jan 2011 21:19:17 +0000 (+0100) Subject: conf: fix 'unknown section' FEATURES parse error X-Git-Tag: rel-18-rc1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3460c87c589b0bfd735dbdd761e9a508a2d9a3c7;p=ngircd conf: fix 'unknown section' FEATURES parse error pointed out by Alex: ngircd.conf, line 105: Unknown section "[Features]"! --- diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 5819ef17..02f5520f 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 ) {