]> arthur.barton.de Git - ngircd-alex.git/commit
Deduce a server name when not set in the configuration
authorAlexander Barton <alex@barton.de>
Sat, 20 Jan 2024 22:04:32 +0000 (23:04 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 21 Jan 2024 00:20:46 +0000 (01:20 +0100)
commit3c39094b52332dc2b79ee9ae640324e312b81777
tree157e3490ba4bd6999256780c799de673ffefacda
parent669d71f3fe4c21f27c329690d74427879d8ee35a
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.
ChangeLog
doc/sample-ngircd.conf.tmpl
man/ngircd.conf.5.tmpl
src/ngircd/conf.c