]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_map.cpp
Change the function name because gcc is dumb :/
[user/henk/code/inspircd.git] / src / commands / cmd_map.cpp
index 7d391d2751adb5e50fa0350acc9fb84f916db428..5e729c98c8e619c440448f0da7c5b506b302487d 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
@@ -21,13 +21,13 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
 
 /** Handle /MAP
  */
-CmdResult CommandMap::Handle (const char** parameters, int pcnt, User *user)
+CmdResult CommandMap::Handle (const char* const*, int, User *user)
 {
        // as with /LUSERS this does nothing without a linking
        // module to override its behaviour and display something
        // better.
-       user->WriteServ("006 %s :%s",user->nick,ServerInstance->Config->ServerName);
-       user->WriteServ("007 %s :End of /MAP",user->nick);
+       user->WriteNumeric(006, "%s :%s",user->nick,ServerInstance->Config->ServerName);
+       user->WriteNumeric(007, "%s :End of /MAP",user->nick);
 
        return CMD_SUCCESS;
 }