From 3c39094b52332dc2b79ee9ae640324e312b81777 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 20 Jan 2024 23:04:32 +0100 Subject: Deduce a server name when not set in the configuration The server "Name" in the "[Global]" section of the configuration file is optional now: When not set (or empty), ngIRCd now tries to deduce a valid IRC server name from the local host name ("node name"), possibly adding a ".host" extension when the host name does not contain a dot (".") which is required in an IRC server name ("ID"). This new behaviour, with all configuration parameters now being optional, allows running ngIRCd without any configuration file at all. --- doc/sample-ngircd.conf.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/sample-ngircd.conf.tmpl') diff --git a/doc/sample-ngircd.conf.tmpl b/doc/sample-ngircd.conf.tmpl index cea23a2b..a5b61af7 100644 --- a/doc/sample-ngircd.conf.tmpl +++ b/doc/sample-ngircd.conf.tmpl @@ -24,8 +24,9 @@ # make sure that they correspond to your installation and setup! # Server name in the IRC network, must contain at least one dot - # (".") and be unique in the IRC network. Required! - Name = irc.example.net + # (".") and be unique in the IRC network. When not set, ngIRCd tries + # to deduce a valid IRC server name from the local host name. + ;Name = irc.example.net # Information about the server and the administrator, used by the # ADMIN command. Not required by server but by RFC! -- cgit 1.4.1