mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
whoops
This commit is contained in:
parent
dff1e21921
commit
687f35d51c
@ -31,7 +31,7 @@ var pages = function(dbot) {
|
||||
|
||||
// TODO: Clean up
|
||||
_.each(profiles, function(profile) {
|
||||
if(_.has(dbot.db.quoteArrs, profile.profile.primary)) {
|
||||
if(_.has(dbot.db.quoteArrs, profile.profile.primary) && !profile.profile.avatar) {
|
||||
var category = dbot.db.quoteArrs[profile.profile.primary];
|
||||
var avatar = _.find(category, function(quote) {
|
||||
return quote.match(/(\.jpg|\.png|\.jpeg)$/i);
|
||||
|
Loading…
Reference in New Issue
Block a user