diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 9587b5fa..00b5bb79 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.58 2003/04/27 11:46:52 alex Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.59 2003/04/29 12:36:09 alex Exp $"; #include "imp.h" #include <assert.h> @@ -837,6 +837,17 @@ Validate_Config( BOOLEAN Configtest ) exit( 1 ); } } + + if( ! strchr( Conf_ServerName, '.' )) + { + /* No dot in server name! */ + Config_Error( LOG_ALERT, "Invalid server name configured in \"%s\" ('ServerName'): Dot missing!", NGIRCd_ConfFile ); + if( ! Configtest ) + { + Config_Error( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME ); + exit( 1 ); + } + } #ifdef STRICT_RFC if( ! Conf_ServerAdminMail[0] ) |