]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_links.cpp
Fixes for bug #12
[user/henk/code/inspircd.git] / src / commands / cmd_links.cpp
index 5de58e90f19a4df24fdc9dde8e662a0a0744ff5a..e48d452cd61131a7f94bdf5d7f2e7267c3b14990 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
@@ -13,8 +13,8 @@
 
 #include "inspircd.h"
 
-#ifndef __CMD_LINKS_H__
-#define __CMD_LINKS_H__
+#ifndef CMD_LINKS_H
+#define CMD_LINKS_H
 
 // include the common header files
 
@@ -31,7 +31,7 @@ class CommandLinks : public Command
  public:
        /** Constructor for links.
         */
-       CommandLinks (InspIRCd* Instance, Module* parent) : Command(Instance,parent,"LINKS",0,0) { }
+       CommandLinks ( Module* parent) : Command(parent,"LINKS",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
@@ -48,7 +48,7 @@ class CommandLinks : public Command
  */
 CmdResult CommandLinks::Handle (const std::vector<std::string>&, User *user)
 {
-       user->WriteNumeric(364, "%s %s %s :0 %s",user->nick.c_str(),ServerInstance->Config->ServerName,ServerInstance->Config->ServerName,ServerInstance->Config->ServerDesc);
+       user->WriteNumeric(364, "%s %s %s :0 %s",user->nick.c_str(),ServerInstance->Config->ServerName.c_str(),ServerInstance->Config->ServerName.c_str(),ServerInstance->Config->ServerDesc.c_str());
        user->WriteNumeric(365, "%s * :End of /LINKS list.",user->nick.c_str());
        return CMD_SUCCESS;
 }