summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-10 13:36:25 +0100
committerSadie Powell <sadie@witchery.services>2025-05-10 14:40:12 +0100
commit2609ff44c6e9787de99eb6ab1a7cbbc6bd450951 (patch)
tree3c03d35b74136d140c566860db2109bf9d537bb6 /src
parentca30bb23706b21709111baea90cc5f2dcc3da444 (diff)
Add defaults for service:{user,host,gecos}.
Diffstat (limited to 'src')
-rw-r--r--src/config.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 24387d2bb..738a447a7 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -336,9 +336,9 @@ Conf::Conf() : Block("")
const Block &service = this->GetBlock("service", i);
const Anope::string &nick = service.Get<const Anope::string>("nick"),
- &user = service.Get<const Anope::string>("user"),
- &host = service.Get<const Anope::string>("host"),
- &gecos = service.Get<const Anope::string>("gecos"),
+ &user = service.Get<const Anope::string>("user", nick.lower()),
+ &host = service.Get<const Anope::string>("host", servername),
+ &gecos = service.Get<const Anope::string>("gecos", nick),
&modes = service.Get<const Anope::string>("modes"),
&channels = service.Get<const Anope::string>("channels"),
&alias = service.Get<const Anope::string>("alias", nick.upper());