]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_part.cpp
Convert more modules
[user/henk/code/inspircd.git] / src / cmd_part.cpp
index cb5dde28ef7e51f9d22074e567a471b5cc99dc4d..347466c22375dda74d6850c615bd4d2b7f299a27 100644 (file)
@@ -2,12 +2,9 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *                <Craig@chatspike.net>
+ *  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;
        }