]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_channel/cmd_join.cpp
Convert WriteNumeric() calls to pass the parameters of the numeric as method parameters
[user/henk/code/inspircd.git] / src / coremods / core_channel / cmd_join.cpp
index 1945bf52e2484a2a8d1df83815e00d31b5e5fcf3..06e203ead68a11b3b2a1c282050d82097a9194c4 100644 (file)
@@ -55,6 +55,6 @@ CmdResult CommandJoin::HandleLocal(const std::vector<std::string>& parameters, L
                }
        }
 
-       user->WriteNumeric(ERR_NOSUCHCHANNEL, "%s :Invalid channel name", parameters[0].c_str());
+       user->WriteNumeric(ERR_NOSUCHCHANNEL, parameters[0], "Invalid channel name");
        return CMD_FAILURE;
 }