diff options
| author | Florian Westphal <fw@strlen.de> | 2011-01-09 22:19:17 +0100 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2011-01-09 22:19:17 +0100 |
| commit | 3460c87c589b0bfd735dbdd761e9a508a2d9a3c7 (patch) | |
| tree | 71ede945ad23935066f34e6dfe419884d8e41741 | |
| parent | 02592f912e9f4e43f4501ff4f15953d21b77d8b2 (diff) | |
| download | ngircd-3460c87c589b0bfd735dbdd761e9a508a2d9a3c7.tar.gz ngircd-3460c87c589b0bfd735dbdd761e9a508a2d9a3c7.zip | |
conf: fix 'unknown section' FEATURES parse error
pointed out by Alex: ngircd.conf, line 105: Unknown section "[Features]"!
| -rw-r--r-- | src/ngircd/conf.c | 3 |
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 ) { |