X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_ping.cpp;h=9ecec693c2010c62993bed501ec6801030287bb6;hb=547ee1342e8b07bcdf46bc81343d1a1f7a2998e5;hp=a0caeb3cd47e700c8ab18862350685762524742a;hpb=09afa5085614e0224a296abd082fce205003c3fe;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_ping.cpp b/src/cmd_ping.cpp index a0caeb3cd..9ecec693c 100644 --- a/src/cmd_ping.cpp +++ b/src/cmd_ping.cpp @@ -16,13 +16,15 @@ #include "configreader.h" #include "users.h" -#include "commands.h" -#include "helperfuncs.h" #include "commands/cmd_ping.h" -extern InspIRCd* ServerInstance; +extern "C" command_t* init_command(InspIRCd* Instance) +{ + return new cmd_ping(Instance); +} + void cmd_ping::Handle (const char** parameters, int pcnt, userrec *user) { user->WriteServ("PONG %s :%s",ServerInstance->Config->ServerName,parameters[0]);