]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cycle.cpp
Fix sending DEL for caps which have not been advertised yet.
[user/henk/code/inspircd.git] / src / modules / m_cycle.cpp
index 1028fa97753be60c13f7e498cc20ef2def180a2c..5f3dddc6f714262e0d042c8ffcf36b50d5c6bef1 100644 (file)
@@ -28,10 +28,10 @@ class CommandCycle : public SplitCommand
        CommandCycle(Module* Creator)
                : SplitCommand(Creator, "CYCLE", 1)
        {
-               Penalty = 3; syntax = "<channel> :[reason]";
+               Penalty = 3; syntax = "<channel> [:<reason>]";
        }
 
-       CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user) CXX11_OVERRIDE
+       CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE
        {
                Channel* channel = ServerInstance->FindChan(parameters[0]);
                std::string reason = "Cycling";
@@ -84,7 +84,7 @@ class ModuleCycle : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides command CYCLE, acts as a server-side HOP command to part and rejoin a channel.", VF_VENDOR);
+               return Version("Provides the CYCLE command, acts as a server-side HOP command to part and rejoin a channel", VF_VENDOR);
        }
 };