Permalink
Browse files

Merge pull request #568 from Takehiro-Adachi/patch-1

Update ambush.coffee so that it will trim name
  • Loading branch information...
2 parents bed5fb0 + 6db3b50 commit 42689ef4ef13518e3803ca7ed0c36882d5ae4b34 @technicalpickles technicalpickles committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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])

0 comments on commit 42689ef

Please sign in to comment.