X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_pong.cpp;h=c89542240f15ca9905ecd1db4c55a96a6189e130;hb=0306a4231e85baeb5029ef2b9b36d0b5d241d147;hp=11973a72936b48237e1e6bcf59425f45bc2e148b;hpb=6050df73f498d05597fb37c6157868df1f6f4db2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_pong.cpp b/src/cmd_pong.cpp index 11973a729..c89542240 100644 --- a/src/cmd_pong.cpp +++ b/src/cmd_pong.cpp @@ -2,25 +2,27 @@ * | 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 "inspircd.h" #include "users.h" -#include "commands.h" #include "commands/cmd_pong.h" +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; }