X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_pong.cpp;h=e1927deab5c268fbe98e69369e0f404a2829ce38;hb=4cc6e5e14fdbde499481dbab5ab2ad1257b8af9c;hp=76acfbccdc20527d8fb36c0988dacbed90c5fe79;hpb=7c0a77920db0d64c1a3c0f1413fd64c62ae8cefa;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_pong.cpp b/src/cmd_pong.cpp index 76acfbccd..e1927deab 100644 --- a/src/cmd_pong.cpp +++ b/src/cmd_pong.cpp @@ -2,25 +2,26 @@ * | 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. * * --------------------------------------------------- */ -#include "users.h" -#include "commands.h" +#include "inspircd.h" #include "commands/cmd_pong.h" -#include "helperfuncs.h" -void cmd_pong::Handle (char **parameters, int pcnt, userrec *user) +extern "C" DllExport Command* init_command(InspIRCd* Instance) +{ + return new CommandPong(Instance); +} + +CmdResult CommandPong::Handle (const char** parameters, int pcnt, User *user) { // set the user as alive so they survive to next ping user->lastping = 1; + return CMD_SUCCESS; }