]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cycle.cpp
YAY for LDAP oper blocks! :D
[user/henk/code/inspircd.git] / src / modules / m_cycle.cpp
index aee8ba8cf4d83768b417626d0193cfd11ecdae29..8d1c46fb35717cddf8f3e99d95c3b4cb50526b19 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
 
 /** Handle /CYCLE
  */
-class cmd_cycle : public Command
+class CommandCycle : public Command
 {
  public:
-       cmd_cycle (InspIRCd* Instance) : Command(Instance,"CYCLE", 0, 1, false, 3)
+       CommandCycle (InspIRCd* Instance) : Command(Instance,"CYCLE", 0, 1, false, 3)
        {
                this->source = "m_cycle.so";
                syntax = "<channel> :[reason]";
                TRANSLATE3(TR_TEXT, TR_TEXT, TR_END);
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
        {
                Channel* channel = ServerInstance->FindChan(parameters[0]);
                std::string reason = ConvToStr("Cycling");
@@ -62,7 +62,7 @@ class cmd_cycle : public Command
                                if (!channel->PartUser(user, reason.c_str()))
                                        delete channel;
                                
-                               Channel::JoinUser(ServerInstance, user, parameters[0], true, "", ServerInstance->Time(true));
+                               Channel::JoinUser(ServerInstance, user, parameters[0], true, "", false, ServerInstance->Time());
                        }
 
                        return CMD_LOCALONLY;
@@ -79,14 +79,15 @@ class cmd_cycle : public Command
 
 class ModuleCycle : public Module
 {
-       cmd_cycle*      mycommand;
+       CommandCycle*   mycommand;
  public:
        ModuleCycle(InspIRCd* Me)
                : Module(Me)
        {
                
-               mycommand = new cmd_cycle(ServerInstance);
+               mycommand = new CommandCycle(ServerInstance);
                ServerInstance->AddCommand(mycommand);
+
        }
        
        virtual ~ModuleCycle()