X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_ping.cpp;h=11e975624c9ec4881b3f6b7f7fc9513bc274fc11;hb=1064b6732975ad32ac32147974a3af2d888a7e12;hp=3aeafe15ebc4dbb1d415159c6b6e6f069bfb208d;hpb=dd36852a52e8541306b76c5b88bce8ab9b36654c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_ping.cpp b/src/commands/cmd_ping.cpp index 3aeafe15e..11e975624 100644 --- a/src/commands/cmd_ping.cpp +++ b/src/commands/cmd_ping.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -19,8 +19,8 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) return new CommandPing(Instance); } -CmdResult CommandPing::Handle (const char* const* 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; }