]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
If the user's nick is just a case change, the TS is NOT updated (thanks jilles)
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 28 Aug 2007 20:27:16 +0000 (20:27 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 28 Aug 2007 20:27:16 +0000 (20:27 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7978 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree/main.cpp

index 96ceee539aed11e4cafe1c58cf0fbb688c9bdc4f..9d7b7db790afbcca368aae49548ece4d289dd6c9 100644 (file)
@@ -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);
        }