diff options
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 96ceee539..9d7b7db79 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -1095,7 +1095,12 @@ void ModuleSpanningTree::OnUserPostNick(userrec* user, const std::string &oldnic { std::deque<std::string> params; params.push_back(user->nick); - user->age = ServerInstance->Time(true); + + /** IMPORTANT: We don't update the TS if the oldnick is just a case change of the newnick! + */ + if (irc::string(user->nick) != assign(oldnick)) + user->age = ServerInstance->Time(true); + params.push_back(ConvToStr(user->age)); Utils->DoOneToMany(user->uuid,"NICK",params); } |