]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_map.cpp
Fix for bug found by danieldg, where remote nicks were truncated to NICKMAX, but...
[user/henk/code/inspircd.git] / src / commands / cmd_map.cpp
index 5e729c98c8e619c440448f0da7c5b506b302487d..475baab1e3132241c26ee438ff1b45f35af80c95 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -21,13 +21,13 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
 
 /** Handle /MAP
  */
-CmdResult CommandMap::Handle (const char* const*, int, User *user)
+CmdResult CommandMap::Handle (const std::vector<std::string>&, User *user)
 {
        // as with /LUSERS this does nothing without a linking
        // module to override its behaviour and display something
        // better.
-       user->WriteNumeric(006, "%s :%s",user->nick,ServerInstance->Config->ServerName);
-       user->WriteNumeric(007, "%s :End of /MAP",user->nick);
+       user->WriteNumeric(006, "%s :%s",user->nick.c_str(),ServerInstance->Config->ServerName);
+       user->WriteNumeric(007, "%s :End of /MAP",user->nick.c_str());
 
        return CMD_SUCCESS;
 }