]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_ping.cpp
In the grand tradition of huge fucking commits:
[user/henk/code/inspircd.git] / src / cmd_ping.cpp
index a0caeb3cd47e700c8ab18862350685762524742a..735f9c3bef983e93b984d65434a33a3c870b37f1 100644 (file)
@@ -2,28 +2,25 @@
  *       | 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 "configreader.h"
-#include "users.h"
-#include "commands.h"
-#include "helperfuncs.h"
+#include "inspircd.h"
 #include "commands/cmd_ping.h"
 
-extern InspIRCd* ServerInstance;
-
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
+{
+       return new cmd_ping(Instance);
+}
 
-void cmd_ping::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_ping::Handle (const char** parameters, int pcnt, User *user)
 {
        user->WriteServ("PONG %s :%s",ServerInstance->Config->ServerName,parameters[0]);
+       return CMD_SUCCESS;
 }