diff options
| author | 2016-02-25 16:12:09 +0100 | |
|---|---|---|
| committer | 2016-02-25 16:12:09 +0100 | |
| commit | da29af8cba49d51e53d6e68237ccbf6370b6dd1f (patch) | |
| tree | 5546764f28ff9457efa3a0f90ae6778953590293 /src/modules/m_namedmodes.cpp | |
| parent | Add Numeric::Numeric (diff) | |
Convert WriteNumeric() calls to pass the parameters of the numeric as method parameters
Diffstat (limited to 'src/modules/m_namedmodes.cpp')
| -rw-r--r-- | src/modules/m_namedmodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_namedmodes.cpp b/src/modules/m_namedmodes.cpp index 617ee43b3..10bef981a 100644 --- a/src/modules/m_namedmodes.cpp +++ b/src/modules/m_namedmodes.cpp @@ -39,7 +39,7 @@ static void DisplayList(User* user, Channel* channel) } const std::string line = ":" + ServerInstance->Config->ServerName + " 961 " + user->nick + " " + channel->name; user->SendText(line, items); - user->WriteNumeric(960, "%s :End of mode list", channel->name.c_str()); + user->WriteNumeric(960, channel->name, "End of mode list"); } class CommandProp : public Command @@ -55,7 +55,7 @@ class CommandProp : public Command Channel* const chan = ServerInstance->FindChan(parameters[0]); if (!chan) { - src->WriteNumeric(ERR_NOSUCHNICK, "%s :No such nick/channel", parameters[0].c_str()); + src->WriteNumeric(Numerics::NoSuchNick(parameters[0])); return CMD_FAILURE; } |
