* | 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)
+ CommandCycle (InspIRCd* Instance) : Command(Instance,"CYCLE", 0, 1, false, 3)
{
this->source = "m_cycle.so";
syntax = "<channel> :[reason]";
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(true));
}
return CMD_LOCALONLY;
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()