diff --git a/modules/profile/api.js b/modules/profile/api.js index 6e0b818..2bf7b05 100644 --- a/modules/profile/api.js +++ b/modules/profile/api.js @@ -31,7 +31,12 @@ var api = function(dbot) { dbot.api.users.resolveUser(server, nick, function(user){ if(user){ this.db.read('profiles', user.id, function(err, profile){ - callback(false, user, profile); + if(!err){ + callback(false, user, profile); + } + else{ + callback(true, null, null); + } }); } else{