1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 18:00:28 +00:00

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

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