summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-10 13:38:29 +0100
committerSadie Powell <sadie@witchery.services>2025-05-10 14:40:12 +0100
commit50f17ea8e1df04c69f9ad5f8da5f7ac95029de9a (patch)
treeb5e8d47725fd8e531809ecc6f1482a9e0fa75758 /src/config.cpp
parent2609ff44c6e9787de99eb6ab1a7cbbc6bd450951 (diff)
Consistently use realname instead of gecos.
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 738a447a7..b56af4f97 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -338,7 +338,7 @@ Conf::Conf() : Block("")
const Anope::string &nick = service.Get<const Anope::string>("nick"),
&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),
+ &real = service.Get<const Anope::string>("real", nick),
&modes = service.Get<const Anope::string>("modes"),
&channels = service.Get<const Anope::string>("channels"),
&alias = service.Get<const Anope::string>("alias", nick.upper());
@@ -346,12 +346,12 @@ Conf::Conf() : Block("")
ValidateNotEmptyOrSpaces("service", "nick", nick);
ValidateNotEmptyOrSpaces("service", "user", user);
ValidateNotEmptyOrSpaces("service", "host", host);
- ValidateNotEmpty("service", "gecos", gecos);
+ ValidateNotEmpty("service", "real", real);
ValidateNoSpaces("service", "channels", channels);
BotInfo *bi = BotInfo::Find(nick, true);
if (!bi)
- bi = new BotInfo(nick, user, host, gecos, modes);
+ bi = new BotInfo(nick, user, host, real, modes);
bi->alias = alias;
bi->conf = true;