Sat, 21 Jun 2014 16:09:32 +0300
- when announcing new issues, include the project name
cobalt.py | file | annotate | diff | comparison | revisions |
--- 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))