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_cycle.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_cycle.cpp')
| -rw-r--r-- | src/modules/m_cycle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index c8b6bd8b4..202cb123f 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -44,7 +44,7 @@ class CommandCycle : public SplitCommand if (!channel) { - user->WriteNumeric(ERR_NOSUCHCHANNEL, "%s :No such channel", parameters[0].c_str()); + user->WriteNumeric(ERR_NOSUCHCHANNEL, parameters[0], "No such channel"); return CMD_FAILURE; } @@ -64,7 +64,7 @@ class CommandCycle : public SplitCommand } else { - user->WriteNumeric(ERR_NOTONCHANNEL, "%s :You're not on that channel", channel->name.c_str()); + user->WriteNumeric(ERR_NOTONCHANNEL, channel->name, "You're not on that channel"); } return CMD_FAILURE; |
