diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-30 18:34:57 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-30 18:34:57 +0100 |
commit | 7bde9de9b3e25a285d82d93ef6b1d3ef9c597e43 (patch) | |
tree | dc053af10e29fe2fda599e2f23548649a60bbe15 /src/modules | |
parent | 8cb20e354533fbec24aafd4e61ff6fa69b434aa2 (diff) |
Replace most usages of "name" with "real" or "real name".
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chgname.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_setname.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/main.h | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/uid.cpp | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp index d0a4d6fdc..f6ab800be 100644 --- a/src/modules/m_chgname.cpp +++ b/src/modules/m_chgname.cpp @@ -29,7 +29,7 @@ class CommandChgname : public Command { allow_empty_last_param = false; flags_needed = 'o'; - syntax = "<nick> <newname>"; + syntax = "<nick> <new real name>"; TRANSLATE2(TR_NICK, TR_TEXT); } @@ -57,7 +57,7 @@ class CommandChgname : public Command if (IS_LOCAL(dest)) { - dest->ChangeName(parameters[1]); + dest->ChangeRealName(parameters[1]); 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()); } diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp index bc2b0f3d9..efe7028b7 100644 --- a/src/modules/m_setname.cpp +++ b/src/modules/m_setname.cpp @@ -29,7 +29,7 @@ class CommandSetname : public Command CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1) { allow_empty_last_param = false; - syntax = "<newname>"; + syntax = "<new real name>"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE @@ -40,7 +40,7 @@ class CommandSetname : public Command return CMD_FAILURE; } - if (user->ChangeName(parameters[0])) + if (user->ChangeRealName(parameters[0])) { ServerInstance->SNO->WriteGlobalSno('a', "%s used SETNAME to change their real name to '%s'", user->nick.c_str(), parameters[0].c_str()); } diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 344a6088b..c7e55c66c 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -493,7 +493,7 @@ void ModuleSpanningTree::OnChangeHost(User* user, const std::string &newhost) CmdBuilder(user, "FHOST").push(newhost).Broadcast(); } -void ModuleSpanningTree::OnChangeName(User* user, const std::string& real) +void ModuleSpanningTree::OnChangeRealName(User* user, const std::string& real) { if (user->registered != REG_ALL || !IS_LOCAL(user)) return; diff --git a/src/modules/m_spanningtree/main.h b/src/modules/m_spanningtree/main.h index b6374e32e..4479b0700 100644 --- a/src/modules/m_spanningtree/main.h +++ b/src/modules/m_spanningtree/main.h @@ -152,7 +152,7 @@ class ModuleSpanningTree : public Module, public Stats::EventListener void OnBackgroundTimer(time_t curtime) CXX11_OVERRIDE; void OnUserJoin(Membership* memb, bool sync, bool created, CUList& excepts) CXX11_OVERRIDE; void OnChangeHost(User* user, const std::string &newhost) CXX11_OVERRIDE; - void OnChangeName(User* user, const std::string& real) CXX11_OVERRIDE; + void OnChangeRealName(User* user, const std::string& real) CXX11_OVERRIDE; void OnChangeIdent(User* user, const std::string &ident) CXX11_OVERRIDE; void OnUserPart(Membership* memb, std::string &partmessage, CUList& excepts) CXX11_OVERRIDE; void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message) CXX11_OVERRIDE; diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index 86933dc72..11c5ffc91 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -147,7 +147,7 @@ CmdResult CommandFIdent::HandleRemote(RemoteUser* src, Params& params) CmdResult CommandFName::HandleRemote(RemoteUser* src, Params& params) { - src->ChangeName(params[0]); + src->ChangeRealName(params[0]); return CMD_SUCCESS; } |