- work on fixing bt poll

Wed, 12 Nov 2014 14:24:11 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 12 Nov 2014 14:24:11 +0200
changeset 84
247f4a927835
parent 83
3dab1fd47d51
child 85
302e2bec51d8

- work on fixing bt poll

bt.py file | annotate | diff | comparison | revisions
--- a/bt.py	Wed Nov 12 14:22:30 2014 +0200
+++ b/bt.py	Wed Nov 12 14:24:11 2014 +0200
@@ -132,10 +132,10 @@
 	isprivate = data['view_state']['name'] == 'private'
 	reporter = data['reporter']['name'] if hasattr (data['reporter'], 'name') else '<nobody>'
 
-	for channel in self.channels:
+	for channel in bot.channels:
 		if channel.get_value ('btannounce', False):
 			if not isprivate or (channel.get_value ('btprivate', False)):
-				self.write ("PRIVMSG %s :[%s] New issue %s, reported by %s: %s: %s" % \
+				bot.write ("PRIVMSG %s :[%s] New issue %s, reported by %s: %s: %s" % \
 					(channel.get_value ('name'),
 					data['project']['name'],
 					idstring,

mercurial