From 5df3368991e71a5920d882aee82715559ea7426b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 16 Jan 2023 04:04:44 +0000 Subject: Fix the cycle module sending a notice instead of ERR_BANNEDFROMCHAN. --- src/modules/m_cycle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_cycle.cpp') 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; } -- cgit v1.3.1-10-gc9f91