From 76030cb8afcce53885f0bd3c5c63d5536eaa3019 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 26 Jul 2014 16:04:34 +0200 Subject: m_spanningtree Don't accept NICK with 0 TS --- src/modules/m_spanningtree/nick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') 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& 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. -- cgit v1.2.3