3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

return data for user changes instead of calling stats

This commit is contained in:
reality 2013-01-15 17:52:13 +00:00
parent 921da917a4
commit 628ba5b569

View File

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