3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 04:32:37 +01:00

Fix the long-broken "quote already in db" detection

This commit is contained in:
Luke Slater 2012-03-19 18:46:33 +00:00
parent 4893b2dd74
commit 982135411e

View File

@ -158,7 +158,7 @@ var quotes = function(dbot) {
if(!Object.isArray(quotes[key])) { if(!Object.isArray(quotes[key])) {
quotes[key] = []; quotes[key] = [];
} else { } else {
if (q[2] in quotes[key]) { if (quotes[key].include(q[2]) {
dbot.say(data.channel, 'Quote already in DB. Initiate incineration.'); dbot.say(data.channel, 'Quote already in DB. Initiate incineration.');
return; return;
} }