X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_part.cpp;h=347466c22375dda74d6850c615bd4d2b7f299a27;hb=cd7657bddc7a6dc2e7326077d173a874bf71f6bd;hp=cb5dde28ef7e51f9d22074e567a471b5cc99dc4d;hpb=4cf0ae1308fe98757de42ffbe391e61844ac9e0a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_part.cpp b/src/cmd_part.cpp index cb5dde28e..347466c22 100644 --- a/src/cmd_part.cpp +++ b/src/cmd_part.cpp @@ -2,12 +2,9 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits * - * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see * the file COPYING for details. * @@ -18,9 +15,7 @@ #include "users.h" #include "commands/cmd_part.h" - - -extern "C" command_t* init_command(InspIRCd* Instance) +extern "C" DllExport command_t* init_command(InspIRCd* Instance) { return new cmd_part(Instance); } @@ -34,7 +29,7 @@ CmdResult cmd_part::Handle (const char** parameters, int pcnt, userrec *user) if (c) { - if (!c->PartUser(user, pcnt > 1 ? parameters[0] : NULL)) + if (!c->PartUser(user, pcnt > 1 ? parameters[1] : NULL)) /* Arse, who stole our channel! :/ */ delete c; }