diff options
Diffstat (limited to 'modules/cycle.cpp')
| -rw-r--r-- | modules/cycle.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/cycle.cpp b/modules/cycle.cpp index 8dbff45e6..012e82948 100644 --- a/modules/cycle.cpp +++ b/modules/cycle.cpp @@ -32,9 +32,13 @@ class CommandCycle final : public SplitCommand { +private: + ChanModeReference banmode; + public: CommandCycle(Module* Creator) : SplitCommand(Creator, "CYCLE", 1) + , banmode(Creator, "ban") { penalty = 3000; syntax = { "<channel> [:<reason>]" }; @@ -59,7 +63,7 @@ public: if (channel->HasUser(user)) { - if (channel->GetPrefixValue(user) < VOICE_VALUE && channel->IsBanned(user)) + if (channel->GetPrefixValue(user) < VOICE_VALUE && channel->CheckList(*banmode, user)) { // User is banned, send an error and don't cycle them user->WriteNumeric(ERR_BANNEDFROMCHAN, channel->name, "You may not cycle, as you are banned on channel " + channel->name); |
