event["channel"] -> event["target"] (from regex-commands change)

This commit is contained in:
jesopo 2019-05-18 21:33:50 +01:00
parent 7671dd2086
commit 7ccfa12b00

View file

@ -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()