X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_part.cpp;h=6cb5a26df7515b135acb2fed8dda4e2b4ffecd50;hb=59b1a8955142935b02af6446005ab47fc7c3fc8c;hp=23daecb7625e3bc92f3840ecff8d6771aab57822;hpb=293df6a8b55e89c127e60e92711ef0ef1027bff8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_part.cpp b/src/cmd_part.cpp index 23daecb76..6cb5a26df 100644 --- a/src/cmd_part.cpp +++ b/src/cmd_part.cpp @@ -2,10 +2,10 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. + * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. * E-mail: - * - * + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see @@ -60,20 +60,20 @@ extern chan_hash chanlist; extern whowas_hash whowas; extern std::vector all_opers; extern std::vector local_users; -extern userrec* fd_ref_table[65536]; +extern userrec* fd_ref_table[MAX_DESCRIPTORS]; void cmd_part::Handle (char **parameters, int pcnt, userrec *user) { if (pcnt > 1) { - /*if (ServerInstance->Parser->LoopCall(handle_part,parameters,pcnt,user,0,pcnt-2,0)) - return;*/ + if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0)) + return; del_channel(user,parameters[0],parameters[1],false); } else { - /*if (ServerInstance->Parser->LoopCall(handle_part,parameters,pcnt,user,0,pcnt-1,0)) - return;*/ + if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-1,0)) + return; del_channel(user,parameters[0],NULL,false); } }