3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

Fix npcs thingy whatever

This commit is contained in:
Luke Slater 2011-11-08 16:22:40 +00:00
parent 3068d6120d
commit b02ad7f7a7

View File

@ -94,7 +94,7 @@ var quotes = function(dbot) {
if(!Object.isArray(quotes[q[1]])) {
quotes[q[1]] = [];
} else {
if (q2 in quotes[q[1]]) {
if (q[2] in quotes[q[1]]) {
dbot.say(data.channel, 'Quote already in DB. Initiate incineration.');
return;
}
@ -181,4 +181,4 @@ var quotes = function(dbot) {
exports.fetch = function(dbot) {
return quotes(dbot);
};
};