]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cycle.cpp
Update the cloaks of connected users when their IP address changes.
[user/henk/code/inspircd.git] / src / modules / m_cycle.cpp
index c8b6bd8b4b82ec923e433c602a313da3ffa7d812..3ead72a453f1787b798f7e7aaca18f24a6ebf692 100644 (file)
@@ -31,7 +31,7 @@ class CommandCycle : public SplitCommand
                Penalty = 3; syntax = "<channel> :[reason]";
        }
 
-       CmdResult HandleLocal(const std::vector<std::string> &parameters, LocalUser* user)
+       CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE
        {
                Channel* channel = ServerInstance->FindChan(parameters[0]);
                std::string reason = "Cycling";
@@ -44,7 +44,7 @@ class CommandCycle : public SplitCommand
 
                if (!channel)
                {
-                       user->WriteNumeric(ERR_NOSUCHCHANNEL, "%s :No such channel", parameters[0].c_str());
+                       user->WriteNumeric(Numerics::NoSuchChannel(parameters[0]));
                        return CMD_FAILURE;
                }
 
@@ -64,7 +64,7 @@ class CommandCycle : public SplitCommand
                }
                else
                {
-                       user->WriteNumeric(ERR_NOTONCHANNEL, "%s :You're not on that channel", channel->name.c_str());
+                       user->WriteNumeric(ERR_NOTONCHANNEL, channel->name, "You're not on that channel");
                }
 
                return CMD_FAILURE;