2007-07-16 17:30:04 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2008-01-10 13:27:07 +00:00
|
|
|
* InspIRCd: (C) 2002-2008 InspIRCd Development Team
|
2007-07-17 18:43:39 +00:00
|
|
|
* See: http://www.inspircd.org/wiki/index.php/Credits
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
|
|
|
* This program is free but copyrighted software; see
|
2007-07-17 18:43:39 +00:00
|
|
|
* the file COPYING for details.
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CMD_KILL_H__
|
|
|
|
#define __CMD_KILL_H__
|
|
|
|
|
|
|
|
// include the common header files
|
|
|
|
|
|
|
|
#include "users.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
|
|
|
/** Handle /KILL. These command handlers can be reloaded by the core,
|
|
|
|
* and handle basic RFC1459 commands. Commands within modules work
|
|
|
|
* the same way, however, they can be fully unloaded, where these
|
|
|
|
* may not.
|
|
|
|
*/
|
2007-10-21 21:43:48 +00:00
|
|
|
class CommandKill : public Command
|
2007-07-16 17:30:04 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/** Constructor for kill.
|
|
|
|
*/
|
2008-02-13 10:39:25 +00:00
|
|
|
CommandKill (InspIRCd* Instance) : Command(Instance,"KILL","o",2,false,0) { syntax = "<nickname> <reason>"; }
|
2007-07-16 17:30:04 +00:00
|
|
|
/** Handle command.
|
|
|
|
* @param parameters The parameters to the comamnd
|
|
|
|
* @param pcnt The number of parameters passed to teh command
|
|
|
|
* @param user The user issuing the command
|
|
|
|
* @return A value from CmdResult to indicate command success or failure.
|
|
|
|
*/
|
2008-05-04 21:37:36 +00:00
|
|
|
CmdResult Handle(const std::vector<std::string>& parameters, User *user);
|
2007-07-16 17:30:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|