Modified message color default behavior.

This commit is contained in:
aboron
2016-07-08 16:24:26 -04:00
parent ed2f87f57b
commit f040d897a7
2 changed files with 5 additions and 3 deletions

View File

@@ -2769,11 +2769,13 @@ class HIPCHAT(object):
if self.emoticon:
text = self.emoticon + ' ' + text
data = {'color': self.color,
'message': text,
data = {'message': text,
'notify': 'false',
'message_format': 'text'}
if self.color:
data['color'] = self.color
hiphost = urlparse(self.apiurl).hostname
hippath = urlparse(self.apiurl).path
hipquery = urlparse(self.apiurl).query