From: Attila Molnar Date: Sat, 26 Jul 2014 14:04:34 +0000 (+0200) Subject: m_spanningtree Don't accept NICK with 0 TS X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=inline;h=76030cb8afcce53885f0bd3c5c63d5536eaa3019;p=user%2Fhenk%2Fcode%2Finspircd.git m_spanningtree Don't accept NICK with 0 TS --- 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.