From 238e204d8569df160612b8aede02b23aa2c72259 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 16 Feb 2013 18:06:58 +0000 Subject: [PATCH] Fix [#286] --- modules/quotes/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes/commands.js b/modules/quotes/commands.js index ed76050..dbcbe73 100644 --- a/modules/quotes/commands.js +++ b/modules/quotes/commands.js @@ -77,7 +77,7 @@ var commands = function(dbot) { var needle = event.input[2]; if(_.has(quotes, haystack)) { var matches = _.filter(quotes[haystack], function(quote) { - return _.indexOf(quote, needle) != -1; + return quote.indexOf(needle) != -1; }, this); if(matches.length == 0) {