From 628ba5b569bae4ba4f7199f5f1e9c8730ed1bdd1 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 15 Jan 2013 17:52:13 +0000 Subject: [PATCH] return data for user changes instead of calling stats --- modules/users/commands.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/users/commands.js b/modules/users/commands.js index e1c5cd9..49666ec 100644 --- a/modules/users/commands.js +++ b/modules/users/commands.js @@ -51,10 +51,14 @@ var commands = function(dbot) { 'newAlias': newAlias })); - dbot.api.stats.fixStats(event.server, newAlias); + return { + 'server': event.server, + 'alias': newAlias + }; } else { event.reply(dbot.t('unknown_alias', { 'alias': newParent })); } + return false; }, '~mergeusers': function(event) { @@ -73,10 +77,14 @@ var commands = function(dbot) { 'new_user': primaryUser })); - dbot.api.stats.fixStats(event.server, secondaryUser); + return { + 'server': event.server, + 'alias': newAlias + }; } else { event.reply(dbot.t('unprimary_error')); } + return false; } };