summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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());