Permalink
Browse files

Merge pull request #4 from endenizen/fix_robot_send

Robot.send should pass arguments, not array
  • Loading branch information...
2 parents aaf25c5 + 0125945 commit 6cf73bf0eefa6defb8f1a52fe146d2efcaf5ef6c @chris chris committed Jul 18, 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 6cf73bf

Please sign in to comment.