From c1c8ffca699882b4eeab38a0c0c85c036efccfb4 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 4 Jan 2013 18:04:09 +0100 Subject: [PATCH] Update modules/users/users.js call api fixStats --- modules/users/users.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/users/users.js b/modules/users/users.js index cea4c3d..f5e3e9d 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -85,7 +85,7 @@ var users = function(dbot) { event.reply(dbot.t('aliasparentset', { 'newParent': newParent, 'newAlias': newAlias })); - dbot.modules.stats.fixStats(event.server, newAlias); // :'( + dbot.api.stats.fixStats(event.server, newAlias); } else { event.reply(dbot.t('unknown_alias', { 'alias': newParent})); } @@ -107,6 +107,8 @@ var users = function(dbot) { 'old_user': secondaryUser, 'new_user': primaryUser })); + + dbot.api.stats.fixStats(event.server, secondaryUser); } else { event.reply(dbot.t('unprimary_error')); }