]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_join.cpp
Chain ValidateServerName onto ValidateHostname so that the servername gets hostname...
[user/henk/code/inspircd.git] / src / commands / cmd_join.cpp
index be9b963a6b4acb3c0f5dc2ca759563e185fe625b..d34409e7c0a4ddadc8495ff57cf42814ad521baa 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,7 +21,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
 
 /** Handle /JOIN
  */
-CmdResult CommandJoin::Handle (const char** parameters, int pcnt, User *user)
+CmdResult CommandJoin::Handle (const char* const* parameters, int pcnt, User *user)
 {
        if (pcnt > 1)
        {
@@ -46,6 +46,6 @@ CmdResult CommandJoin::Handle (const char** parameters, int pcnt, User *user)
                }
        }
 
-       user->WriteServ("403 %s %s :Invalid channel name",user->nick, parameters[0]);
+       user->WriteNumeric(403, "%s %s :Invalid channel name",user->nick, parameters[0]);
        return CMD_FAILURE;
 }