aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/nick.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-07-26 15:47:52 +0200
committerGravatar Attila Molnar2014-07-26 15:47:52 +0200
commit90abe2cd475c8ca2e81626f565d173e9f56d1251 (patch)
tree4d376b37c81645c4f639437854fbdc3b3bbbd64f /src/modules/m_spanningtree/nick.cpp
parentm_spanningtree Let the NICK handler change the nick of the incoming user on c... (diff)
downloadinspircd++-90abe2cd475c8ca2e81626f565d173e9f56d1251.tar.gz
inspircd++-90abe2cd475c8ca2e81626f565d173e9f56d1251.tar.bz2
inspircd++-90abe2cd475c8ca2e81626f565d173e9f56d1251.zip
m_spanningtree Update comments around collision handling
Diffstat (limited to 'src/modules/m_spanningtree/nick.cpp')
-rw-r--r--src/modules/m_spanningtree/nick.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/nick.cpp b/src/modules/m_spanningtree/nick.cpp
index c689a0fdd..cdec280e1 100644
--- a/src/modules/m_spanningtree/nick.cpp
+++ b/src/modules/m_spanningtree/nick.cpp
@@ -45,7 +45,8 @@ CmdResult CommandNick::HandleRemote(RemoteUser* user, std::vector<std::string>&
User* x = ServerInstance->FindNickOnly(params[0]);
if ((x) && (x != user) && (x->registered == REG_ALL))
{
- /* x is local, who is remote */
+ // 'x' is the already existing user using the same nick as params[0]
+ // 'user' is the user trying to change nick to the in use nick
int collideret = Utils->DoCollision(x, TreeServer::Get(user), newts, user->ident, user->GetIPString(), user->uuid);
if (collideret != 1)
{