mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	"ServerName" is checked better now: a dot (".") is required.
This commit is contained in:
		| @@ -11,6 +11,7 @@ | |||||||
|  |  | ||||||
|  |  | ||||||
| ngIRCd 0.7.0 | ngIRCd 0.7.0 | ||||||
|  |   - "ServerName" is checked better now: a dot (".") is required. | ||||||
|   - The KILL comand verifies and logs more parameters. |   - The KILL comand verifies and logs more parameters. | ||||||
|  |  | ||||||
|   ngIRCd 0.7.0-pre2 (2003-04-27) |   ngIRCd 0.7.0-pre2 (2003-04-27) | ||||||
| @@ -446,4 +447,4 @@ ngIRCd 0.0.1, 31.12.2001 | |||||||
|  |  | ||||||
|  |  | ||||||
| --  | --  | ||||||
| $Id: ChangeLog,v 1.188.2.11 2003/04/29 12:20:14 alex Exp $ | $Id: ChangeLog,v 1.188.2.12 2003/04/29 12:37:17 alex Exp $ | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| # $Id: sample-ngircd.conf,v 1.20.2.1 2003/04/27 11:50:32 alex Exp $ | # $Id: sample-ngircd.conf,v 1.20.2.2 2003/04/29 12:37:17 alex Exp $ | ||||||
|  |  | ||||||
| # | # | ||||||
| # This is a sample configuration file for the ngIRCd, which must adept to | # This is a sample configuration file for the ngIRCd, which must adept to | ||||||
| @@ -16,7 +16,8 @@ | |||||||
| 	# configuration of the server, like the server name and the ports | 	# configuration of the server, like the server name and the ports | ||||||
| 	# on which the server should be listening. | 	# 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 | 	Name = irc.the.net | ||||||
| 	 | 	 | ||||||
| 	# Info text of the server. This will be shown by WHOIS and | 	# Info text of the server. This will be shown by WHOIS and | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|  |  | ||||||
| #include "portab.h" | #include "portab.h" | ||||||
|  |  | ||||||
| static char UNUSED id[] = "$Id: conf.c,v 1.57.2.1 2003/04/27 11:48:53 alex Exp $"; | static char UNUSED id[] = "$Id: conf.c,v 1.57.2.2 2003/04/29 12:37:18 alex Exp $"; | ||||||
|  |  | ||||||
| #include "imp.h" | #include "imp.h" | ||||||
| #include <assert.h> | #include <assert.h> | ||||||
| @@ -838,6 +838,17 @@ Validate_Config( BOOLEAN Configtest ) | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
|  | 	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 | #ifdef STRICT_RFC | ||||||
| 	if( ! Conf_ServerAdminMail[0] ) | 	if( ! Conf_ServerAdminMail[0] ) | ||||||
| 	{ | 	{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton