aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-12-11 19:21:31 -0800
committerGravatar MarkKoz <[email protected]>2019-12-11 19:21:31 -0800
commit0ddf9e66ea4e7a9753cc7044da4bc06d1e9cfb7d (patch)
treef479feda01451e9a80b81257c01ccf76d3065aad
parentMerge pull request #682 from manusaurio/master (diff)
Verification: allow mods+ to use commands in checkpoint (#688)
-rw-r--r--bot/cogs/verification.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index b5e8d4357..b62a08db6 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -9,9 +9,10 @@ from bot.cogs.moderation import ModLog
from bot.constants import (
Bot as BotConfig,
Channels, Colours, Event,
- Filter, Icons, Roles
+ Filter, Icons, MODERATION_ROLES, Roles
)
from bot.decorators import InChannelCheckFailure, in_channel, without_role
+from bot.utils.checks import without_role_check
log = logging.getLogger(__name__)
@@ -189,7 +190,7 @@ class Verification(Cog):
@staticmethod
def bot_check(ctx: Context) -> bool:
"""Block any command within the verification channel that is not !accept."""
- if ctx.channel.id == Channels.verification:
+ if ctx.channel.id == Channels.verification and without_role_check(ctx, *MODERATION_ROLES):
return ctx.command.name == "accept"
else:
return True