2005-12-16 18:10:38 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2007-05-15 16:11:12 +00:00
|
|
|
* InspIRCd is copyright (C) 2002-2007 ChatSpike-Dev.
|
2007-05-19 18:08:57 +00:00
|
|
|
* E-mail:
|
|
|
|
* <brain@chatspike.net>
|
|
|
|
* <Craig@chatspike.net>
|
2005-12-16 18:10:38 +00:00
|
|
|
*
|
|
|
|
* Written by Craig Edwards, Craig McLure, and others.
|
|
|
|
* This program is free but copyrighted software; see
|
2007-05-19 18:08:57 +00:00
|
|
|
* the file COPYING for details.
|
2005-12-16 18:10:38 +00:00
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CMD_QUIT_H__
|
|
|
|
#define __CMD_QUIT_H__
|
|
|
|
|
|
|
|
// include the common header files
|
|
|
|
|
|
|
|
#include "users.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
2007-06-17 18:16:46 +00:00
|
|
|
/** Handle /QUIT. 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.
|
2006-09-15 15:06:51 +00:00
|
|
|
*/
|
2005-12-16 18:10:38 +00:00
|
|
|
class cmd_quit : public command_t
|
|
|
|
{
|
|
|
|
public:
|
2007-06-17 18:23:25 +00:00
|
|
|
/** Constructor for quit.
|
|
|
|
*/
|
2007-05-19 18:08:57 +00:00
|
|
|
cmd_quit (InspIRCd* Instance) : command_t(Instance,"QUIT",0,0,true) { syntax = "[<message>]"; }
|
2007-06-17 18:26:13 +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.
|
|
|
|
*/
|
2007-05-19 18:08:57 +00:00
|
|
|
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
2005-12-16 18:10:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|