summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-26 16:04:34 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-26 16:04:34 +0200
commit76030cb8afcce53885f0bd3c5c63d5536eaa3019 (patch)
treeca8b4817c9df39c0552f22fe96229d844c399e97 /src/modules/m_spanningtree
parent4464121eb232a3ec6049802256012714fe786506 (diff)
m_spanningtree Don't accept NICK with 0 TS
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/nick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/nick.cpp b/src/modules/m_spanningtree/nick.cpp
index 9f0d78a65..43b713e14 100644
--- a/src/modules/m_spanningtree/nick.cpp
+++ b/src/modules/m_spanningtree/nick.cpp
@@ -35,8 +35,8 @@ CmdResult CommandNick::HandleRemote(RemoteUser* user, std::vector<std::string>&
if ((isdigit(params[0][0])) && (params[0] != user->uuid))
throw ProtocolException("Attempted to change nick to an invalid or non-matching UUID");
- /* Update timestamp on user when they change nicks */
- const time_t newts = ConvToInt(params[1]);
+ // Timestamp of the new nick
+ const time_t newts = ServerCommand::ExtractTS(params[1]);
/*
* On nick messages, check that the nick doesn't already exist here.