From 0e66921d347939f8aeef2b438a7eb9a061865abe Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 30 Jan 2019 19:15:11 +0000 Subject: [PATCH] Break when we've found a suitable command hook (commands.py) --- modules/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/commands.py b/modules/commands.py index 14979cfd..cf0f3207 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -160,6 +160,7 @@ class Module(ModuleManager.BaseModule): hook = potential_hook target = event["user"] if not is_channel else event["channel"] + break if not hook: return