mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
Update modules/users/users.js
call api fixStats
This commit is contained in:
parent
b50f4d25b8
commit
c1c8ffca69
@ -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'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user