X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_pong.cpp;h=08d47eca7f54c908aac6937479cbd15689d6aefa;hb=2b3394855d5adddb16285b905503d9ffe5a1d963;hp=f372591e475d891cf0474140136a66d86da3a606;hpb=77123f4dec9f29105f6c0ceea0262cfe8e9eaa1a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_pong.cpp b/src/cmd_pong.cpp index f372591e4..08d47eca7 100644 --- a/src/cmd_pong.cpp +++ b/src/cmd_pong.cpp @@ -2,24 +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 "cmd_pong.h" +#include "inspircd.h" +#include "commands/cmd_pong.h" -void cmd_pong::Handle (char **parameters, int pcnt, userrec *user) +extern "C" DllExport command_t* init_command(InspIRCd* Instance) +{ + return new cmd_pong(Instance); +} + +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; }