From b201c1aaad746cff2c35164c35fc863bc51f21cf Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 13 Jun 2013 18:59:14 +0000 Subject: [PATCH] fix profile config pointers --- modules/profile/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/profile/api.js b/modules/profile/api.js index d9ac410..24059b0 100644 --- a/modules/profile/api.js +++ b/modules/profile/api.js @@ -12,8 +12,8 @@ var api = function(dbot) { if(user){ this.db.create('profiles', user.id, { 'id': user.id, - 'profile': dbot.config.profile.schema.profile, - 'preferences': dbot.config.profile.schema.preferences + 'profile': this.config.schema.profile, + 'preferences': this.config.schema.preferences }, function(err, result){ if(err){ console.log(err);