summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 20:21:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 20:21:27 +0000
commitab7bad9d878793f0e46185ee53d6064de5073fc3 (patch)
tree037ddac7b26eaf7f1d37d1c65c4fb313cbb30391 /src/modules/m_spanningtree/treesocket2.cpp
parent7593f77b99ca9cc3c8aa8c09d222c9d1ae8309e4 (diff)
Note: NICK now takes two params, a nickname and a timestamp of the change.
When a nick change occurs this must update the users timestamp, so that the users nick is marked to a newer TS. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7977 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treesocket2.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index 678e9d56f..aff737e5f 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -1489,8 +1489,11 @@ bool TreeSocket::ProcessLine(std::string &line)
}
if (who)
{
- if ((command == "NICK") && (params.size() > 0))
+ if ((command == "NICK") && (params.size() > 1))
{
+ /* Update timestamp on user when they change nicks */
+ who->age = atoi(params[1].c_str());
+
/* On nick messages, check that the nick doesnt
* already exist here. If it does, kill their copy,
* and our copy.