# HG changeset patch # User Teemu Piippo # Date 1415795051 -7200 # Node ID 247f4a9278352bb9992a1412500e280ddb1e8cc4 # Parent 3dab1fd47d5138a45be82fdc6fcd023459cd3806 - work on fixing bt poll diff -r 3dab1fd47d51 -r 247f4a927835 bt.py --- 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 '' - 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,