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 * ---------------------------------------------------
20 #include "helperfuncs.h"
21 #include "commands/cmd_part.h"
23 extern InspIRCd* ServerInstance;
25 void cmd_part::Handle (char **parameters, int pcnt, userrec *user)
29 if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0))
31 del_channel(user,parameters[0],parameters[1],false);
35 if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-1,0))
37 del_channel(user,parameters[0],NULL,false);