repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 3460c87c589b0bfd735dbdd761e9a508a2d9a3c7:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 3460c87c589b0bfd735dbdd761e9a508a2d9a3c7
Author: Florian Westphal 
Date:   Sun Jan 9 22:19:17 2011 +0100

    conf: fix 'unknown section' FEATURES parse error

    pointed out by Alex:
    ngircd.conf, line 105: Unknown section "[Features]"!

diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 5819ef17eda92869fcadecefb627face7d64a374..
index ..02f5520f6657797a092703276311d77a7d981b28 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 ) {

-----END OF PAGE-----