3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Update modules/users/users.js

call api fixStats
This commit is contained in:
Luke Slater 2013-01-04 18:04:09 +01:00
parent b50f4d25b8
commit c1c8ffca69

View File

@ -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'));
}