aboutsummaryrefslogtreecommitdiff
path: root/modules/imgur.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-16 18:40:25 +0100
committerGravatar jesopo2019-06-16 18:40:25 +0100
commit98e1202c780faf7b3fab1c49e87581a857376d5c (patch)
tree94b0259aa64363566fd07ee89c0e3ba7a88cfee8 /modules/imgur.py
parentDon't fail get_kwarg when self.kwarg[name] is falsey (diff)
signature
Allow command.regex hooks to opt-in to being triggered from a /me
closes #68
Diffstat (limited to 'modules/imgur.py')
-rw-r--r--modules/imgur.py4
1 files changed, 2 insertions, 2 deletions
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