Skip to content

Update ambush.coffee so that it will trim name #568

Merged
merged 1 commit into from Sep 8, 2012
+1 −1
View
2 src/scripts/ambush.coffee
@@ -24,7 +24,7 @@ module.exports = (robot) ->
robot.brain.data.ambushes ||= {}
robot.respond /ambush (.*): (.*)/i, (msg) ->
- users = robot.usersForFuzzyName(msg.match[1])
+ users = robot.usersForFuzzyName(msg.match[1].trim())
if users.length is 1
user = users[0]
appendAmbush(robot.brain.data.ambushes, user, msg.message.user, msg.match[2])
Something went wrong with that request. Please try again.