event["channel"]
-> event["target"]
(from regex-commands change)
This commit is contained in:
parent
7671dd2086
commit
7ccfa12b00
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue