forked from GitHub/dbot
fix add on empty cat
This commit is contained in:
parent
5fd7e2ca50
commit
648b44b298
@ -59,6 +59,7 @@ var imgur = function(dbot) {
|
|||||||
if (_.contains(category, testUrl)){
|
if (_.contains(category, testUrl)){
|
||||||
// there's probably less than 62^5 chance of this happening
|
// there's probably less than 62^5 chance of this happening
|
||||||
} else {
|
} else {
|
||||||
|
if(!_.has(dbot.db.quoteArrs, category)) dbot.db.quoteArrs[category] = [];
|
||||||
dbot.db.quoteArrs[category].push(testUrl);
|
dbot.db.quoteArrs[category].push(testUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user