From 8cb20e354533fbec24aafd4e61ff6fa69b434aa2 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 30 Jul 2018 18:30:11 +0100 Subject: Replace most usages of "GECOS" with "real" or "real name". --- src/users.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 81e6512a1..20480da07 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -995,20 +995,20 @@ bool User::SharesChannelWith(User *other) return false; } -bool User::ChangeName(const std::string& gecos) +bool User::ChangeName(const std::string& real) { - if (!this->fullname.compare(gecos)) + if (!this->fullname.compare(real)) return true; if (IS_LOCAL(this)) { ModResult MOD_RESULT; - FIRST_MOD_RESULT(OnChangeLocalUserGECOS, MOD_RESULT, (IS_LOCAL(this),gecos)); + FIRST_MOD_RESULT(OnPreChangeRealName, MOD_RESULT, (IS_LOCAL(this), real)); if (MOD_RESULT == MOD_RES_DENY) return false; - FOREACH_MOD(OnChangeName, (this,gecos)); + FOREACH_MOD(OnChangeName, (this, real)); } - this->fullname.assign(gecos, 0, ServerInstance->Config->Limits.MaxGecos); + this->fullname.assign(real, 0, ServerInstance->Config->Limits.MaxReal); return true; } -- cgit v1.3.1-10-gc9f91