aboutsummaryrefslogtreecommitdiff
path: root/modules/imgur.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-18 21:33:50 +0100
committerGravatar jesopo2019-05-18 21:33:50 +0100
commit7ccfa12b00aef45ab9b383cff30873d0c53d90ac (patch)
treed4f39442226618e8b7950c6da5191d1eab40d302 /modules/imgur.py
parentSwitch back to events.name defaulting to None, use typing.cast to fix linting (diff)
signature
`event["channel"]` -> `event["target"]` (from regex-commands change)
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 feefcb92..2ad37c07 100644
--- a/modules/imgur.py
+++ b/modules/imgur.py
@@ -31,7 +31,7 @@ class Module(ModuleManager.BaseModule):
"""
:command: imgur
"""
- if event["channel"].get_setting("auto-imgur", False):
+ 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)
@@ -39,7 +39,7 @@ class Module(ModuleManager.BaseModule):
"""
:command: imgur
"""
- if event["channel"].get_setting("auto-imgur", False):
+ if event["target"].get_setting("auto-imgur", False):
event["stdout"].write(self._parse_gallery(event["match"].group(1)))
event.eat()