diff options
| author | Alexander Barton <alex@barton.de> | 2003-12-19 14:32:59 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2003-12-19 14:32:59 +0000 |
| commit | 05170bc94cc3c200da0b973b3cf1a44635e64611 (patch) | |
| tree | 3bdff05300261d4fd0f49f128d0a7bcaf36d6233 /src | |
| parent | 07ad774f0abc1479754c7b867a5c59acd85191f0 (diff) | |
| download | ngircd-05170bc94cc3c200da0b973b3cf1a44635e64611.tar.gz ngircd-05170bc94cc3c200da0b973b3cf1a44635e64611.zip | |
Fixed error messages related to server name configuration; updated
sample configuration file. (from 0.7.x)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index d17168c3..81e0a916 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conf.c,v 1.61 2003/11/05 21:41:02 alex Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.62 2003/12/19 14:32:59 alex Exp $"; #include "imp.h" #include <assert.h> @@ -854,7 +854,7 @@ Validate_Config( BOOLEAN Configtest ) if( ! Conf_ServerName[0] ) { /* No server name configured! */ - Config_Error( LOG_ALERT, "No server name configured in \"%s\" ('ServerName')!", NGIRCd_ConfFile ); + Config_Error( LOG_ALERT, "No server name configured in \"%s\" (section 'Global': 'Name')!", NGIRCd_ConfFile ); if( ! Configtest ) { Config_Error( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME ); @@ -862,10 +862,10 @@ Validate_Config( BOOLEAN Configtest ) } } - if( ! strchr( Conf_ServerName, '.' )) + if( Conf_ServerName[0] && ! strchr( Conf_ServerName, '.' )) { /* No dot in server name! */ - Config_Error( LOG_ALERT, "Invalid server name configured in \"%s\" ('ServerName'): Dot missing!", NGIRCd_ConfFile ); + Config_Error( LOG_ALERT, "Invalid server name configured in \"%s\" (section 'Global': 'Name'): Dot missing!", NGIRCd_ConfFile ); if( ! Configtest ) { Config_Error( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME ); |