]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/svsnick.cpp
Document <alias:stripcolor>
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / svsnick.cpp
index 2514dfd6f511fc9bc4ed17c035f80f040ad7711f..c44a6a4bb1b85e4e9bcefb0d504fe226e263ecb0 100644 (file)
@@ -41,13 +41,13 @@ CmdResult CommandSVSNick::Handle(User* user, Params& parameters)
                // 4. SVSNICK arrives
                // 5. Attila_ gets his nick changed to Guest12345 unnecessarily
                //
-               // In this case when the SVSNICK is processed the target has already changed his nick to something
+               // In this case when the SVSNICK is processed the target has already changed their nick to something
                // which isn't protected, so changing the nick again to a Guest nick is not desired.
                // However, if the expected nick TS parameter is present in the SVSNICK then the nick change in step 5
                // won't happen because the timestamps won't match.
                if (parameters.size() > 3)
                {
-                       time_t ExpectedTS = ConvToInt(parameters[3]);
+                       time_t ExpectedTS = ConvToNum<time_t>(parameters[3]);
                        if (u->age != ExpectedTS)
                                return CMD_FAILURE; // Ignore SVSNICK
                }
@@ -56,7 +56,7 @@ CmdResult CommandSVSNick::Handle(User* user, Params& parameters)
                if (isdigit(nick[0]))
                        nick = u->uuid;
 
-               time_t NickTS = ConvToInt(parameters[2]);
+               time_t NickTS = ConvToNum<time_t>(parameters[2]);
                if (NickTS <= 0)
                        return CMD_FAILURE;