]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_ping.cpp
Fix OnSetAway hook denying remote users' change rather than local users
[user/henk/code/inspircd.git] / src / commands / cmd_ping.cpp
index a4ed9e8f19397c7af77c81b29b484f533da18f96..11e975624c9ec4881b3f6b7f7fc9513bc274fc11 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 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** 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;
 }