mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-01 18:19:09 +00:00
Fixed error messages related to server name configuration; updated
sample configuration file. (from 0.7.x)
This commit is contained in:
parent
07ad774f0a
commit
05170bc94c
@ -1,13 +1,13 @@
|
|||||||
# $Id: sample-ngircd.conf,v 1.24 2003/11/05 21:41:02 alex Exp $
|
# $Id: sample-ngircd.conf,v 1.25 2003/12/19 14:32:59 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 be adepted
|
||||||
# the local preferences and needs.
|
# to the local preferences and needs.
|
||||||
#
|
#
|
||||||
# Comments are started with "#" or ";".
|
# Comments are started with "#" or ";".
|
||||||
#
|
#
|
||||||
# Author: Alexander Barton, <alex@barton.de>
|
# Use "ngircd --configtest" (see manual page ngircd(8)) to validate that the
|
||||||
# Initial translation by Ilja Osthoff, <ilja@glide.ath.cx>
|
# server interpreted the configuration file as expected!
|
||||||
#
|
#
|
||||||
|
|
||||||
[Global]
|
[Global]
|
||||||
@ -17,7 +17,7 @@
|
|||||||
# on which the server should be listening.
|
# on which the server should be listening.
|
||||||
|
|
||||||
# Server name in the IRC network, must contain at least one dot
|
# Server name in the IRC network, must contain at least one dot
|
||||||
# (".") and be unique in the IRC network.
|
# (".") and be unique in the IRC network. Required!
|
||||||
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
|
||||||
@ -28,7 +28,7 @@
|
|||||||
;Password = abc
|
;Password = abc
|
||||||
|
|
||||||
# Information about the server and the administrator, used by the
|
# Information about the server and the administrator, used by the
|
||||||
# ADMIN command.
|
# ADMIN command. Not required by server but by RFC!
|
||||||
;AdminInfo1 = Description
|
;AdminInfo1 = Description
|
||||||
;AdminInfo2 = Location
|
;AdminInfo2 = Location
|
||||||
;AdminEMail = admin@irc.server
|
;AdminEMail = admin@irc.server
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#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 "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -854,7 +854,7 @@ Validate_Config( BOOLEAN Configtest )
|
|||||||
if( ! Conf_ServerName[0] )
|
if( ! Conf_ServerName[0] )
|
||||||
{
|
{
|
||||||
/* No server name configured! */
|
/* 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 )
|
if( ! Configtest )
|
||||||
{
|
{
|
||||||
Config_Error( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME );
|
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! */
|
/* 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 )
|
if( ! Configtest )
|
||||||
{
|
{
|
||||||
Config_Error( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME );
|
Config_Error( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME );
|
||||||
|
Loading…
Reference in New Issue
Block a user