]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Don't accept NICK with 0 TS
authorAttila Molnar <attilamolnar@hush.com>
Sat, 26 Jul 2014 14:04:34 +0000 (16:04 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 26 Jul 2014 14:04:34 +0000 (16:04 +0200)
src/modules/m_spanningtree/nick.cpp

index 9f0d78a6515348f0fee41144c220ce3b286265f3..43b713e14d0e96dfd8057237147f25dfb50332db 100644 (file)
@@ -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.