Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix "match is not defined" error when replacing a factoid

  • Loading branch information...
commit 2554e1e03b7ff7eedeb516bdbc976dda5b38ec73 1 parent cab80e9
@joshfrench joshfrench authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/scripts/factoid.coffee
View
2  src/scripts/factoid.coffee
@@ -83,4 +83,4 @@ module.exports = (robot) ->
msg.reply msg.match[1] + " is " + factoid
robot.respond /no, (.+) is (.+)/i, (msg) ->
- msg.reply factoids.setFactoid match[1], match[2]
+ msg.reply factoids.setFactoid msg.match[1], msg.match[2]
Please sign in to comment.
Something went wrong with that request. Please try again.