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_remove.cpp | |
| parent | Add Numeric::Numeric (diff) | |
| download | inspircd++-da29af8cba49d51e53d6e68237ccbf6370b6dd1f.tar.gz inspircd++-da29af8cba49d51e53d6e68237ccbf6370b6dd1f.tar.bz2 inspircd++-da29af8cba49d51e53d6e68237ccbf6370b6dd1f.zip | |
Convert WriteNumeric() calls to pass the parameters of the numeric as method parameters
Diffstat (limited to 'src/modules/m_remove.cpp')
| -rw-r--r-- | src/modules/m_remove.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 8d0009d71..5b0efe2a2 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -76,7 +76,7 @@ class RemoveBase : public Command /* Fix by brain - someone needs to learn to validate their input! */ if ((!target) || (target->registered != REG_ALL) || (!channel)) { - user->WriteNumeric(ERR_NOSUCHNICK, "%s :No such nick/channel", !channel ? channame.c_str() : username.c_str()); + user->WriteNumeric(Numerics::NoSuchNick(channel ? username.c_str() : channame.c_str())); return CMD_FAILURE; } @@ -88,7 +88,7 @@ class RemoveBase : public Command if (target->server->IsULine()) { - user->WriteNumeric(482, "%s :Only a u-line may remove a u-line from a channel.", channame.c_str()); + user->WriteNumeric(482, channame, "Only a u-line may remove a u-line from a channel."); return CMD_FAILURE; } @@ -144,7 +144,7 @@ class RemoveBase : public Command else { /* m_nokicks.so was loaded and +Q was set, block! */ - user->WriteNumeric(ERR_RESTRICTED, "%s :Can't remove user %s from channel (nokicks mode is set)", channel->name.c_str(), target->nick.c_str()); + user->WriteNumeric(ERR_RESTRICTED, channel->name, InspIRCd::Format("Can't remove user %s from channel (nokicks mode is set)", target->nick.c_str())); return CMD_FAILURE; } |
