Permalink
Browse files

Allow single answer matching

  • Loading branch information...
1 parent b81a083 commit 0b82aa3133afb4f6582335ae2fad4eeab8e734e1 @ricardobeat ricardobeat committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 commands/yomama.coffee
View
@@ -622,7 +622,7 @@ Your momma is so FAT I have to defragment her weekly
yoMama = (theme, respond) ->
if theme?
jk = jokes.filter((j) -> j.indexOf(theme) >= 0)
- respond brain.anyOf (if jk.length > 1 then jk else jokes)
+ respond brain.anyOf (if jk.length > 0 then jk else jokes)
else
respond brain.anyOf jokes

0 comments on commit 0b82aa3

Please sign in to comment.