From 3460c87c589b0bfd735dbdd761e9a508a2d9a3c7 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sun, 9 Jan 2011 22:19:17 +0100 Subject: [PATCH] conf: fix 'unknown section' FEATURES parse error pointed out by Alex: ngircd.conf, line 105: Unknown section "[Features]"! --- src/ngircd/conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { -- 2.39.2