IncludeDir: default to "$SYSCONFDIR/ngircd.conf.d" bug157-IncludeDir
authorAlexander Barton <alex@barton.de>
Fri, 24 May 2013 22:25:38 +0000 (00:25 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 24 May 2013 22:25:38 +0000 (00:25 +0200)
commit7ea3864a9369086024a2d541b053963958b19899
tree0321cb498accebef88777ae41aab9ebaf408711d
parent891dbd2acc59a6d9ff6dd8a5b12e91f5a8fa20ed
IncludeDir: default to "$SYSCONFDIR/ngircd.conf.d"

Now "IncludeDir" defaults to "$SYSCONFDIR/ngircd.conf.d" instead
of no directory, but a missing directory is only reported as an
error if it has explicitely configured in the main configuration
file and simply ignored otherwise.

Therefore it is now possible not to touch the default (sample)
configuration file at all, and set all distribution and/or system
specific configuration options in "*.conf" files stored in
"$SYSCONFDIF/ngircd.conf.d/".

Thanks to "Elmasloco" for the idea!
src/ngircd/conf.c
src/ngircd/defines.h
src/testsuite/ngircd-test1.conf
src/testsuite/ngircd-test2.conf