X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_ping.cpp;h=bf58241332c416a15a55a4fc0a0e4c22348cb2cc;hb=19b34cde73ce410fdc335127efe4d7080270feb2;hp=515312670191c8a7b2e4d1c48ef3d4ddfcd16790;hpb=6050df73f498d05597fb37c6157868df1f6f4db2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_ping.cpp b/src/cmd_ping.cpp index 515312670..bf5824133 100644 --- a/src/cmd_ping.cpp +++ b/src/cmd_ping.cpp @@ -16,14 +16,17 @@ #include "configreader.h" #include "users.h" -#include "commands.h" - #include "commands/cmd_ping.h" +extern "C" command_t* init_command(InspIRCd* Instance) +{ + return new cmd_ping(Instance); +} -void cmd_ping::Handle (const char** parameters, int pcnt, userrec *user) +CmdResult cmd_ping::Handle (const char** parameters, int pcnt, userrec *user) { user->WriteServ("PONG %s :%s",ServerInstance->Config->ServerName,parameters[0]); + return CMD_SUCCESS; }