summaryrefslogtreecommitdiff
path: root/src/modules/m_cycle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_cycle.cpp')
-rw-r--r--src/modules/m_cycle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp
index 4a7b0f644..3dd4f41c7 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(403, "%s %s :No such channel", user->nick.c_str(), parameters[0].c_str());
+ user->WriteNumeric(ERR_NOSUCHCHANNEL, "%s :No such channel", parameters[0].c_str());
return CMD_FAILURE;
}
@@ -70,7 +70,7 @@ class CommandCycle : public SplitCommand
}
else
{
- user->WriteNumeric(442, "%s %s :You're not on that channel", user->nick.c_str(), channel->name.c_str());
+ user->WriteNumeric(ERR_NOTONCHANNEL, "%s :You're not on that channel", channel->name.c_str());
}
return CMD_FAILURE;