From fda5e1b3d7aea692c0b90ba1321f5668ecb40fc4 Mon Sep 17 00:00:00 2001 From: jef Date: Wed, 12 Aug 2020 18:42:43 +0200 Subject: [PATCH] Merged master branch --- frank/frank.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frank/frank.py b/frank/frank.py index a46a861..4095144 100644 --- a/frank/frank.py +++ b/frank/frank.py @@ -40,8 +40,10 @@ class Frank(discord.Client): cmd = shlex.split(message.content.strip()) if cmd[0] == self.PREFIX: - matched_mods = (mod for mod in self._loaded_modules if - mod.match(cmd[1])) + matched_mods = ( + mod for mod in self._loaded_modules if mod.match(cmd[1]) + ) + module = next(matched_mods, None) if module: