]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_motd.cpp
Whoops, i left a value out of the array, and gcc didnt warn!
[user/henk/code/inspircd.git] / src / cmd_motd.cpp
index 551d76c9e1eb5804d893a37c52ceab6c164edabe..6aaf1a9af2979e006e932e71732a0c0f7a09f18b 100644 (file)
@@ -2,22 +2,20 @@
  *       | 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.
  *
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "users.h"
 #include "commands/cmd_motd.h"
 
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_motd(Instance);
 }
@@ -26,7 +24,6 @@ extern "C" command_t* init_command(InspIRCd* Instance)
  */
 CmdResult cmd_motd::Handle (const char** parameters, int pcnt, userrec *user)
 {
-       if (!pcnt)
-               user->ShowMOTD();
+       user->ShowMOTD();
        return CMD_SUCCESS;
 }