diff options
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/nick.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/nickcollide.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_spanningtree/save.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/svsnick.cpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/nick.cpp b/src/modules/m_spanningtree/nick.cpp index 733901632..ecec849ee 100644 --- a/src/modules/m_spanningtree/nick.cpp +++ b/src/modules/m_spanningtree/nick.cpp @@ -57,6 +57,6 @@ CmdResult CommandNick::HandleRemote(RemoteUser* user, std::vector<std::string>& return CMD_FAILURE; } } - user->ForceNickChange(params[0], newts); + user->ChangeNick(params[0], newts); return CMD_SUCCESS; } diff --git a/src/modules/m_spanningtree/nickcollide.cpp b/src/modules/m_spanningtree/nickcollide.cpp index 30be98fb5..935ccd6bd 100644 --- a/src/modules/m_spanningtree/nickcollide.cpp +++ b/src/modules/m_spanningtree/nickcollide.cpp @@ -114,7 +114,7 @@ int SpanningTreeUtilities::DoCollision(User* u, TreeServer* server, time_t remot params.push_back(ConvToStr(u->age)); params.Broadcast(); - u->ForceNickChange(u->uuid); + u->ChangeNick(u->uuid); if (!bChangeRemote) return 1; @@ -133,7 +133,7 @@ int SpanningTreeUtilities::DoCollision(User* u, TreeServer* server, time_t remot if (remote) { /* nick change collide. Force change their nick. */ - remote->ForceNickChange(remoteuid); + remote->ChangeNick(remoteuid); } if (!bChangeLocal) diff --git a/src/modules/m_spanningtree/save.cpp b/src/modules/m_spanningtree/save.cpp index 03d401211..dd9e866a9 100644 --- a/src/modules/m_spanningtree/save.cpp +++ b/src/modules/m_spanningtree/save.cpp @@ -36,7 +36,7 @@ CmdResult CommandSave::Handle(User* user, std::vector<std::string>& params) if (u->age == ts) { - if (!u->ForceNickChange(u->uuid)) + if (!u->ChangeNick(u->uuid)) { ServerInstance->Users->QuitUser(u, "Nickname collision"); } diff --git a/src/modules/m_spanningtree/svsnick.cpp b/src/modules/m_spanningtree/svsnick.cpp index 43fa0f296..de1331640 100644 --- a/src/modules/m_spanningtree/svsnick.cpp +++ b/src/modules/m_spanningtree/svsnick.cpp @@ -37,10 +37,10 @@ CmdResult CommandSVSNick::Handle(User* user, std::vector<std::string>& parameter if (NickTS <= 0) return CMD_FAILURE; - if (!u->ForceNickChange(nick, NickTS)) + if (!u->ChangeNick(nick, NickTS)) { /* buh. UID them */ - if (!u->ForceNickChange(u->uuid)) + if (!u->ChangeNick(u->uuid)) { ServerInstance->Users->QuitUser(u, "Nickname collision"); } |