aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-16 04:04:44 +0000
committerGravatar Sadie Powell2023-01-16 04:04:44 +0000
commit5df3368991e71a5920d882aee82715559ea7426b (patch)
tree36e1e16e82e7d9b771730da19a7cddf2b172b6e9 /src/modules
parentFix building the pgsql connection DSN in some rare cases. (diff)
Fix the cycle module sending a notice instead of ERR_BANNEDFROMCHAN.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cycle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp
index 686f4652a..230cf8f43 100644
--- a/src/modules/m_cycle.cpp
+++ b/src/modules/m_cycle.cpp
@@ -62,7 +62,7 @@ class CommandCycle : public SplitCommand
if (channel->GetPrefixValue(user) < VOICE_VALUE && channel->IsBanned(user))
{
// User is banned, send an error and don't cycle them
- user->WriteNotice("*** You may not cycle, as you are banned on channel " + channel->name);
+ user->WriteNumeric(ERR_BANNEDFROMCHAN, channel->name, "You may not cycle, as you are banned on channel " + channel->name);
return CMD_FAILURE;
}