diff options
| author | 2018-10-07 08:03:58 +0100 | |
|---|---|---|
| committer | 2018-10-07 08:03:58 +0100 | |
| commit | fab3caa7bee2f1833c4ddc625198e91bea3c7487 (patch) | |
| tree | a631186b35eab5a3e0fc50e0b696cb96c5c4e8dd /modules | |
| parent | Optionally take a function in IRCBot.trigger, a function to be called on the (diff) | |
| signature | ||
do send.stdout event call in bot.trigger func param
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/github.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/github.py b/modules/github.py index 5af9bd95..650b377e 100644 --- a/modules/github.py +++ b/modules/github.py @@ -40,6 +40,6 @@ class Module(ModuleManager.BaseModule): server = self.bot.get_server(server_id) channel = server.get_channel(channel_name) - self.events.on("send.stdout").call(target=channel, - module_name="Github", server=server, message=line) - self.bot.trigger() + self.bot.trigger(lambda: self.events.on("send.stdout" + ).call(target=channel, module_name="Github", + server=server, message=line)) |
