diff options
| author | 2019-01-08 17:34:51 -0500 | |
|---|---|---|
| committer | 2019-01-08 17:34:51 -0500 | |
| commit | 25d9b1ea36b03ed431d7262d373124e3f788d408 (patch) | |
| tree | 8fc82c533acdaadb7797c44f5943c6d98212f3a4 | |
| parent | Switch short-circuit logic, add logging (diff) | |
From review
| -rw-r--r-- | bot/cogs/events.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/cogs/events.py b/bot/cogs/events.py index 78878dcb9..f0baecd4b 100644 --- a/bot/cogs/events.py +++ b/bot/cogs/events.py @@ -123,10 +123,9 @@ class Events: # Short circuit return False - muted_check = any( + return any( infraction["active"] for infraction in infraction_list if infraction["type"].lower() == "mute" ) - return muted_check async def on_command_error(self, ctx: Context, e: CommandError): command = ctx.command |