]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cycle.cpp
Only valid targets for encap are now server ids
[user/henk/code/inspircd.git] / src / modules / m_cycle.cpp
index c271f024cc92aa9a9acc8c7ae90889dae7509fa9..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
@@ -27,7 +27,7 @@ class CommandCycle : public Command
                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 CommandCycle : 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;
@@ -87,6 +87,7 @@ class ModuleCycle : public Module
                
                mycommand = new CommandCycle(ServerInstance);
                ServerInstance->AddCommand(mycommand);
+
        }
        
        virtual ~ModuleCycle()