- when announcing new issues, include the project name

Sat, 21 Jun 2014 16:09:32 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 21 Jun 2014 16:09:32 +0300
changeset 18
dce2b7c0b303
parent 17
f604687dd35b
child 19
ca618214fd07

- 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))

mercurial