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/imgur.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/imgur.py') diff --git a/modules/imgur.py b/modules/imgur.py index 94172513..2cccaac6 100644 --- a/modules/imgur.py +++ b/modules/imgur.py @@ -28,7 +28,7 @@ class Module(ModuleManager.BaseModule): text += "%s " % data["account_url"] return text - @utils.hook("command.regex", pattern=REGEX_IMAGE) + @utils.hook("command.regex", pattern=REGEX_IMAGE, ignore_action=False) def _regex_image(self, event): """ :command: imgur @@ -36,7 +36,7 @@ class Module(ModuleManager.BaseModule): if event["target"].get_setting("auto-imgur", False): event["stdout"].write(self._parse_image(event["match"].group(1))) event.eat() - @utils.hook("command.regex", pattern=REGEX_GALLERY) + @utils.hook("command.regex", pattern=REGEX_GALLERY, ignore_action=False) def _regex_gallery(self, event): """ :command: imgur -- cgit v1.3.1-10-gc9f91