From 6f4a5ee0bacdfaead8e2091574044cef10f67508 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 18 May 2017 20:42:42 -0500 Subject: [PATCH] Correct order of if statement --- cogs/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/misc.py b/cogs/misc.py index 8bd563e..5a88e6d 100644 --- a/cogs/misc.py +++ b/cogs/misc.py @@ -40,7 +40,7 @@ class Miscallaneous: if command is not None: command = self.bot.get_command(command) - if command is not None: + if command is None: for cmd in utils.get_all_commands(self.bot): if not await cmd.can_run(ctx): continue