mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
Fix npcs thingy whatever
This commit is contained in:
parent
3068d6120d
commit
b02ad7f7a7
@ -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);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user