]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_pong.cpp
and a little tweak to remote MOTD too.
[user/henk/code/inspircd.git] / src / cmd_pong.cpp
index 9a388c021de18e4e0c79ed5d86d17e06c69cf286..c89542240f15ca9905ecd1db4c55a96a6189e130 100644 (file)
@@ -2,30 +2,27 @@
  *       | 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_pong.h"
 
-
-
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_pong(Instance);
 }
 
-void cmd_pong::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_pong::Handle (const char** parameters, int pcnt, userrec *user)
 {
        // set the user as alive so they survive to next ping
        user->lastping = 1;
+       return CMD_SUCCESS;
 }