]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_ping.cpp
NEVER use the two-param assign unless you want your string padding to len bytes with \0!
[user/henk/code/inspircd.git] / src / commands / cmd_ping.cpp
index a4ed9e8f19397c7af77c81b29b484f533da18f96..38e5d49ab5140ef350649cc80422c4d6ece65650 100644 (file)
@@ -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<std::string>& 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;
 }