conf: fix 'unknown section' FEATURES parse error

pointed out by Alex:
ngircd.conf, line 105: Unknown section "[Features]"!
This commit is contained in:
Florian Westphal 2011-01-09 22:19:17 +01:00
parent 02592f912e
commit 3460c87c58
1 changed files with 2 additions and 1 deletions

View File

@ -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 ) {