aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/github.py b/modules/github.py
index ecfe8e7a..dbe20b70 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -86,16 +86,13 @@ class Module(ModuleManager.BaseModule):
for server, channel in targets:
for output in outputs:
output = "(%s) %s" % (full_name, output)
- trigger = self._make_trigger(channel, server, output)
- self.bot.trigger(trigger)
+ self.events.on("send.stdout").call(target=channel,
+ module_name="Github", server=server, message=line,
+ hide_prefix=channel.get_setting(
+ "github-hide-prefix", False))
return True
- def _make_trigger(self, channel, server, line):
- return lambda: self.events.on("send.stdout").call(target=channel,
- module_name="Github", server=server, message=line,
- hide_prefix=channel.get_setting("github-hide-prefix", False))
-
def _change_count(self, n, symbol, color):
return utils.irc.color("%s%d" % (symbol, n), color)+utils.irc.bold("")
def _added(self, n):