channel -> event["channel"]

This commit is contained in:
jesopo 2019-05-16 14:27:07 +01:00
parent ce1558e48b
commit 385a4e3d4e

View file

@ -233,7 +233,8 @@ class Module(ModuleManager.BaseModule):
except utils.EventError:
return
if result:
hide_prefix = channel.get_setting("github-hide-prefix", False)
hide_prefix = event["channel"].get_setting(
"github-hide-prefix", False)
self.events.on("send.stdout").call(target=event["channel"],
module_name="Github", server=server, message=result,
hide_prefix=hide_prefix)