summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 20:27:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 20:27:16 +0000
commit316e19f10c1d30215a2617f44ca61f8d6d2559a8 (patch)
tree85e4d3999a3ad1d94b591f2926b34313ab82b1ac /src/modules/m_spanningtree
parentab7bad9d878793f0e46185ee53d6064de5073fc3 (diff)
If the user's nick is just a case change, the TS is NOT updated (thanks jilles)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7978 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp7
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);
}