# HG changeset patch # User Santeri Piippo # Date 1403356172 -10800 # Node ID dce2b7c0b3038d232a9dee5e4b5970d809a90e3a # Parent f604687dd35b11d3ae0ad4fc05a5fb9f3fb7ee22 - when announcing new issues, include the project name diff -r f604687dd35b -r dce2b7c0b303 cobalt.py --- a/cobalt.py Mon Jun 16 23:12:13 2014 +0300 +++ b/cobalt.py Sat Jun 21 16:09:32 2014 +0300 @@ -505,8 +505,8 @@ for channel in self.cfg['channels']: if 'btannounce' in channel and channel['btannounce'] == True: - self.write ("PRIVMSG %s :New issue %s, reported by %s: %s: %s" % \ - (channel['name'], idstring, reporter, data['summary'], self.get_ticket_url (idstring))) + self.write ("PRIVMSG %s :[%s] New issue %s, reported by %s: %s: %s" % \ + (channel['name'], data['project']['name'], idstring, reporter, data['summary'], self.get_ticket_url (idstring))) def handle_error(self): excepterm (traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))