From e3f22fcf31cd2e789d1be90cf0edf3e82829b54e Mon Sep 17 00:00:00 2001 From: genius3000 Date: Tue, 10 Apr 2018 11:05:11 -0600 Subject: [PATCH] Change some usage of "gecos" to "real name" Within the example configs, helpops, some server sent messages, and simple code comments: change the primary usage of "gecos" to "real name" (or "realname" where fitting). --- docs/conf/helpop-full.conf.example | 16 ++++++++-------- docs/conf/helpop.conf.example | 4 ++-- docs/conf/inspircd.conf.example | 2 +- docs/conf/modules.conf.example | 4 ++-- src/coremods/core_user/cmd_user.cpp | 2 +- src/modules/m_chgname.cpp | 6 +++--- src/modules/m_dnsbl.cpp | 2 +- src/modules/m_gecosban.cpp | 2 +- src/modules/m_httpd_stats.cpp | 4 ++-- src/modules/m_setname.cpp | 6 +++--- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/conf/helpop-full.conf.example b/docs/conf/helpop-full.conf.example index d60e4add7..b5d5813f2 100644 --- a/docs/conf/helpop-full.conf.example +++ b/docs/conf/helpop-full.conf.example @@ -145,10 +145,10 @@ everything from people with a host matching *.foo.net, you would do Sends a notice to a channel indicating you wish to join."> - @@ -245,10 +245,10 @@ The following flags after the mask have the following effects: i Show all users who have an ident (username) matching the given mask p Show all users who are connected on the given port number (IRC operators only) - r Show all users whose realnames match the mask. When this + r Show all users whose real name match the mask. When this flag is set it overrides the meaning of the search-pattern, - which must contain a glob pattern intended to match GECOS - (realname) fields. + which must contain a glob pattern intended to match the + real name. m Search for all users with a given set of user modes. When this flag is set it overrides the meaning of the search-pattern, which must contain the mode sequence to @@ -744,7 +744,7 @@ Sends a message to all +w users."> # #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# -# Gecos ban: Implements extended ban 'r', which stops anyone matching -# a mask like +b r:*realname?here* from joining a channel. +# Gecos (real name) ban: Implements extended ban 'r', which stops anyone +# matching a mask like +b r:*realname?here* from joining a channel. # #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# diff --git a/src/coremods/core_user/cmd_user.cpp b/src/coremods/core_user/cmd_user.cpp index c4cdd9b37..452146adc 100644 --- a/src/coremods/core_user/cmd_user.cpp +++ b/src/coremods/core_user/cmd_user.cpp @@ -32,7 +32,7 @@ CommandUser::CommandUser(Module* parent) { works_before_reg = true; Penalty = 0; - syntax = " "; + syntax = " "; } CmdResult CommandUser::HandleLocal(const std::vector& parameters, LocalUser *user) diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp index 46894befc..b6c59d36f 100644 --- a/src/modules/m_chgname.cpp +++ b/src/modules/m_chgname.cpp @@ -45,20 +45,20 @@ class CommandChgname : public Command if (parameters[1].empty()) { - user->WriteNotice("*** CHGNAME: GECOS must be specified"); + user->WriteNotice("*** CHGNAME: Real name must be specified"); return CMD_FAILURE; } if (parameters[1].length() > ServerInstance->Config->Limits.MaxGecos) { - user->WriteNotice("*** CHGNAME: GECOS too long"); + user->WriteNotice("*** CHGNAME: Real name is too long"); return CMD_FAILURE; } if (IS_LOCAL(dest)) { dest->ChangeName(parameters[1]); - ServerInstance->SNO->WriteGlobalSno('a', "%s used CHGNAME to change %s's GECOS to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->fullname.c_str()); + ServerInstance->SNO->WriteGlobalSno('a', "%s used CHGNAME to change %s's real name to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->fullname.c_str()); } return CMD_SUCCESS; diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index ab24873ce..ed31cc54a 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -43,7 +43,7 @@ class DNSBLConfEntry : public refcountbase }; -/** Resolver for CGI:IRC hostnames encoded in ident/GECOS +/** Resolver for CGI:IRC hostnames encoded in ident/real name */ class DNSBLResolver : public DNS::Request { diff --git a/src/modules/m_gecosban.cpp b/src/modules/m_gecosban.cpp index a15f19418..9b449da06 100644 --- a/src/modules/m_gecosban.cpp +++ b/src/modules/m_gecosban.cpp @@ -24,7 +24,7 @@ class ModuleGecosBan : public Module public: Version GetVersion() CXX11_OVERRIDE { - return Version("Extban 'r' - realname (gecos) ban", VF_OPTCOMMON|VF_VENDOR); + return Version("Extban 'r' - real name ban", VF_OPTCOMMON|VF_VENDOR); } ModResult OnCheckBan(User *user, Channel *c, const std::string& mask) CXX11_OVERRIDE diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index bc5d53c94..818c06297 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -183,8 +183,8 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener data << ""; data << "" << u->nick << "" << u->uuid << "" - << u->GetRealHost() << "" << u->GetDisplayedHost() << "" - << Sanitize(u->fullname) << "" << u->server->GetName() << ""; + << u->GetRealHost() << "" << u->GetDisplayedHost() << "" + << Sanitize(u->fullname) << "" << u->server->GetName() << ""; if (u->IsAway()) data << "" << Sanitize(u->awaymsg) << "" << u->awaytime << ""; if (u->IsOper()) diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp index 34428e9c0..b8efd98aa 100644 --- a/src/modules/m_setname.cpp +++ b/src/modules/m_setname.cpp @@ -29,20 +29,20 @@ class CommandSetname : public Command CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1) { allow_empty_last_param = false; - syntax = ""; + syntax = ""; } CmdResult Handle(const std::vector& parameters, User* user) CXX11_OVERRIDE { if (parameters[0].size() > ServerInstance->Config->Limits.MaxGecos) { - user->WriteNotice("*** SETNAME: GECOS too long"); + user->WriteNotice("*** SETNAME: Real name is too long"); return CMD_FAILURE; } if (user->ChangeName(parameters[0])) { - ServerInstance->SNO->WriteGlobalSno('a', "%s used SETNAME to change their GECOS to '%s'", user->nick.c_str(), parameters[0].c_str()); + ServerInstance->SNO->WriteGlobalSno('a', "%s used SETNAME to change their real name to '%s'", user->nick.c_str(), parameters[0].c_str()); } return CMD_SUCCESS; -- 2.39.5