aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-07 08:03:58 +0100
committerGravatar jesopo2018-10-07 08:03:58 +0100
commitfab3caa7bee2f1833c4ddc625198e91bea3c7487 (patch)
treea631186b35eab5a3e0fc50e0b696cb96c5c4e8dd /modules/github.py
parentOptionally 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/github.py')
-rw-r--r--modules/github.py6
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))