2005-12-16 18:10:38 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2006-01-15 15:59:11 +00:00
|
|
|
* InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
|
2005-12-16 18:10:38 +00:00
|
|
|
* E-mail:
|
2006-01-15 15:59:11 +00:00
|
|
|
* <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
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CMD_JOIN_H__
|
|
|
|
#define __CMD_JOIN_H__
|
|
|
|
|
|
|
|
// include the common header files
|
|
|
|
|
|
|
|
#include "users.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
2006-09-15 14:59:22 +00:00
|
|
|
/** Handle /JOIN
|
|
|
|
*/
|
2005-12-16 18:10:38 +00:00
|
|
|
class cmd_join : public command_t
|
|
|
|
{
|
|
|
|
public:
|
2006-08-11 00:15:07 +00:00
|
|
|
cmd_join (InspIRCd* Instance) : command_t(Instance,"JOIN",0,1) { syntax = "<channel>{,<channel>} {<key>{,<key>}}"; }
|
2006-09-06 17:21:59 +00:00
|
|
|
CmdResult Handle(const char** parameters, int pcnt, userrec *user);
|
2005-12-16 18:10:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|