X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_pong.cpp;h=08d47eca7f54c908aac6937479cbd15689d6aefa;hb=2b3394855d5adddb16285b905503d9ffe5a1d963;hp=16b42355bfa285b470ae261d8894d25d73cc0a0d;hpb=bab14f0dd2345c9d7dcbc47c918563709e1ac094;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_pong.cpp b/src/cmd_pong.cpp index 16b42355b..08d47eca7 100644 --- a/src/cmd_pong.cpp +++ b/src/cmd_pong.cpp @@ -1 +1,27 @@ -/* +------------------------------------+ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * * InspIRCd: (C) 2002-2007 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see * the file COPYING for details. * * --------------------------------------------------- */ #include "inspircd.h" #include "users.h" #include "commands/cmd_pong.h" 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; } \ No newline at end of file +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits + * + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + +#include "inspircd.h" +#include "commands/cmd_pong.h" + +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; +}