mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
Fix [#286]
This commit is contained in:
parent
5f8bde0db9
commit
238e204d85
@ -77,7 +77,7 @@ var commands = function(dbot) {
|
|||||||
var needle = event.input[2];
|
var needle = event.input[2];
|
||||||
if(_.has(quotes, haystack)) {
|
if(_.has(quotes, haystack)) {
|
||||||
var matches = _.filter(quotes[haystack], function(quote) {
|
var matches = _.filter(quotes[haystack], function(quote) {
|
||||||
return _.indexOf(quote, needle) != -1;
|
return quote.indexOf(needle) != -1;
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
if(matches.length == 0) {
|
if(matches.length == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user