From 98e1202c780faf7b3fab1c49e87581a857376d5c Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 16 Jun 2019 18:40:25 +0100 Subject: Allow command.regex hooks to opt-in to being triggered from a /me closes #68 --- modules/github/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/github/__init__.py') diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 7f3ff8f7..3dee37d5 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -252,7 +252,7 @@ class Module(ModuleManager.BaseModule): else: return True - @utils.hook("command.regex") + @utils.hook("command.regex", ignore_action=False) def url_regex(self, event): """ :command: github @@ -272,7 +272,7 @@ class Module(ModuleManager.BaseModule): event["stdout"].hide_prefix() event["stdout"].write(result) - @utils.hook("command.regex") + @utils.hook("command.regex", ignore_action=False) def ref_regex(self, event): """ :command: github -- cgit v1.3.1-10-gc9f91