X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_pong.cpp;h=bd75d1c184645908c1f144dec04a7012516652f1;hb=b844d1cbbe79585facc69b9247baa8427cff0b62;hp=5317ad5b3ecdaa03719ee69dacc6d5baa4c60ec7;hpb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_pong.cpp b/src/cmd_pong.cpp index 5317ad5b3..bd75d1c18 100644 --- a/src/cmd_pong.cpp +++ b/src/cmd_pong.cpp @@ -2,12 +2,9 @@ * | 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. * @@ -17,8 +14,16 @@ #include "users.h" #include "commands/cmd_pong.h" -void cmd_pong::Handle (const char** parameters, int pcnt, userrec *user) + + +extern "C" 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; }