]> arthur.barton.de Git - ngircd-alex.git/commitdiff
conf: fix 'unknown section' FEATURES parse error
authorFlorian Westphal <fw@strlen.de>
Sun, 9 Jan 2011 21:19:17 +0000 (22:19 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 9 Jan 2011 21:19:17 +0000 (22:19 +0100)
pointed out by Alex:
ngircd.conf, line 105: Unknown section "[Features]"!

src/ngircd/conf.c

index 5819ef17eda92869fcadecefb627face7d64a374..02f5520f6657797a092703276311d77a7d981b28 100644 (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 ) {