X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_ping.cpp;h=38e5d49ab5140ef350649cc80422c4d6ece65650;hb=cf83031f7bf1c037bf726df84f93686b9631531b;hp=a4ed9e8f19397c7af77c81b29b484f533da18f96;hpb=352eb2b29f2e3f759ef74344b4807b1b6dff8e59;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_ping.cpp b/src/commands/cmd_ping.cpp index a4ed9e8f1..38e5d49ab 100644 --- a/src/commands/cmd_ping.cpp +++ b/src/commands/cmd_ping.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -19,8 +19,8 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) return new CommandPing(Instance); } -CmdResult CommandPing::Handle (const char** parameters, int, User *user) +CmdResult CommandPing::Handle (const std::vector& parameters, User *user) { - user->WriteServ("PONG %s :%s",ServerInstance->Config->ServerName,parameters[0]); + user->WriteServ("PONG %s :%s", ServerInstance->Config->ServerName, parameters[0].c_str()); return CMD_SUCCESS; }