Permalink
Browse files

Format as one message instead of two

  • Loading branch information...
1 parent b9e9c9f commit 0125945dc5836ae9de37931e7a3f68a63784e53d @endenizen endenizen committed Jul 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/pagerduty.coffee
@@ -223,7 +223,7 @@ processIncident = (robot, incident, detail) ->
strings = ["PagerDuty Alert: #{formatIncident(incident, detail)} - Incident ID: #{incident.id}"]
if incident.assigned_to_user?
strings.push(" Assigned To: #{incident.assigned_to_user.name}")
- robot.send(incident_room, strings...)
+ robot.send(incident_room, strings.join(', '))
describeIncident = (robot, id) ->
robot

0 comments on commit 0125945

Please sign in to comment.