From 7ccfa12b00aef45ab9b383cff30873d0c53d90ac Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 18 May 2019 21:33:50 +0100 Subject: [PATCH] `event["channel"]` -> `event["target"]` (from regex-commands change) --- modules/imgur.py | 4 ++-- 1 file 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()