cobalt.py

changeset 18
dce2b7c0b303
parent 17
f604687dd35b
child 19
ca618214fd07
equal deleted inserted replaced
17:f604687dd35b 18:dce2b7c0b303
503 503
504 reporter = data['reporter']['name'] if hasattr (data['reporter'], 'name') else '<nobody>' 504 reporter = data['reporter']['name'] if hasattr (data['reporter'], 'name') else '<nobody>'
505 505
506 for channel in self.cfg['channels']: 506 for channel in self.cfg['channels']:
507 if 'btannounce' in channel and channel['btannounce'] == True: 507 if 'btannounce' in channel and channel['btannounce'] == True:
508 self.write ("PRIVMSG %s :New issue %s, reported by %s: %s: %s" % \ 508 self.write ("PRIVMSG %s :[%s] New issue %s, reported by %s: %s: %s" % \
509 (channel['name'], idstring, reporter, data['summary'], self.get_ticket_url (idstring))) 509 (channel['name'], data['project']['name'], idstring, reporter, data['summary'], self.get_ticket_url (idstring)))
510 510
511 def handle_error(self): 511 def handle_error(self):
512 excepterm (traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) 512 excepterm (traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))
513 513
514 def privmsg (self, channel, msg): 514 def privmsg (self, channel, msg):

mercurial