This repository has been archived by the owner. It is now read-only.

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

Merged
merged 1 commit into from Sep 8, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

@@ -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])