diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-10 13:36:25 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-10 14:40:12 +0100 |
commit | 2609ff44c6e9787de99eb6ab1a7cbbc6bd450951 (patch) | |
tree | 3c03d35b74136d140c566860db2109bf9d537bb6 /src/config.cpp | |
parent | ca30bb23706b21709111baea90cc5f2dcc3da444 (diff) |
Add defaults for service:{user,host,gecos}.
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 6 |
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()); |