- (none)
ngIRCd 0.7.0
+ - "ServerName" is checked better now: a dot (".") is required.
- The KILL comand verifies and logs more parameters.
ngIRCd 0.7.0-pre2
--
-$Id: ChangeLog,v 1.199 2003/04/29 12:19:20 alex Exp $
+$Id: ChangeLog,v 1.200 2003/04/29 12:36:09 alex Exp $
-# $Id: sample-ngircd.conf,v 1.21 2003/04/27 11:45:27 alex Exp $
+# $Id: sample-ngircd.conf,v 1.22 2003/04/29 12:36:09 alex Exp $
#
# This is a sample configuration file for the ngIRCd, which must adept to
# configuration of the server, like the server name and the ports
# on which the server should be listening.
- # Server name in the IRC-network
+ # Server name in the IRC network, must contain at least one dot
+ # (".") and be unique in the IRC network.
Name = irc.the.net
# Info text of the server. This will be shown by WHOIS and
#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>
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] )