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:
parent
02592f912e
commit
3460c87c58
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user