3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00
This commit is contained in:
reality 2013-01-25 00:41:35 +00:00
parent dff1e21921
commit 687f35d51c

View File

@ -31,7 +31,7 @@ var pages = function(dbot) {
// TODO: Clean up // TODO: Clean up
_.each(profiles, function(profile) { _.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 category = dbot.db.quoteArrs[profile.profile.primary];
var avatar = _.find(category, function(quote) { var avatar = _.find(category, function(quote) {
return quote.match(/(\.jpg|\.png|\.jpeg)$/i); return quote.match(/(\.jpg|\.png|\.jpeg)$/i);