1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
25 #include <ext/hash_map>
38 #include "inspstring.h"
39 #include "helperfuncs.h"
42 #include "command_parse.h"
45 extern InspIRCd* ServerInstance;
47 void cmd_join::Handle (char **parameters, int pcnt, userrec *user)
49 if (ServerInstance->Parser->LoopCall(this, parameters, pcnt, user, 0, 0, 1))
52 if (IsValidChannelName(parameters[0]))
54 add_channel(user, parameters[0], parameters[1], false);
58 WriteServ(user->fd,"403 %s %s :Invalid channel name",user->nick, parameters[0]);