]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_ping.cpp
Allow <connect motd> to select an alternate MOTD file to display
[user/henk/code/inspircd.git] / src / commands / cmd_ping.cpp
index e7898921ad21544e452f1c0647c3de4cf2baf7e1..3b7766fc52b6484a7dccb3b91c10507f6d66c355 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -35,7 +35,7 @@ class CommandPing : public Command
 
 CmdResult CommandPing::Handle (const std::vector<std::string>& parameters, User *user)
 {
-       user->WriteServ("PONG %s :%s", ServerInstance->Config->ServerName, parameters[0].c_str());
+       user->WriteServ("PONG %s :%s", ServerInstance->Config->ServerName.c_str(), parameters[0].c_str());
        return CMD_SUCCESS;
 }