about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2011-01-09 22:19:17 +0100
committerFlorian Westphal <fw@strlen.de>2011-01-09 22:19:17 +0100
commit3460c87c589b0bfd735dbdd761e9a508a2d9a3c7 (patch)
tree71ede945ad23935066f34e6dfe419884d8e41741 /src
parent02592f912e9f4e43f4501ff4f15953d21b77d8b2 (diff)
downloadngircd-3460c87c589b0bfd735dbdd761e9a508a2d9a3c7.tar.gz
ngircd-3460c87c589b0bfd735dbdd761e9a508a2d9a3c7.zip
conf: fix 'unknown section' FEATURES parse error
pointed out by Alex:
ngircd.conf, line 105: Unknown section "[Features]"!
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conf.c3
1 files changed, 2 insertions, 1 deletions
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 ) {