mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
return data for user changes instead of calling stats
This commit is contained in:
parent
921da917a4
commit
628ba5b569
@ -51,10 +51,14 @@ var commands = function(dbot) {
|
|||||||
'newAlias': newAlias
|
'newAlias': newAlias
|
||||||
}));
|
}));
|
||||||
|
|
||||||
dbot.api.stats.fixStats(event.server, newAlias);
|
return {
|
||||||
|
'server': event.server,
|
||||||
|
'alias': newAlias
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
event.reply(dbot.t('unknown_alias', { 'alias': newParent }));
|
event.reply(dbot.t('unknown_alias', { 'alias': newParent }));
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
'~mergeusers': function(event) {
|
'~mergeusers': function(event) {
|
||||||
@ -73,10 +77,14 @@ var commands = function(dbot) {
|
|||||||
'new_user': primaryUser
|
'new_user': primaryUser
|
||||||
}));
|
}));
|
||||||
|
|
||||||
dbot.api.stats.fixStats(event.server, secondaryUser);
|
return {
|
||||||
|
'server': event.server,
|
||||||
|
'alias': newAlias
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
event.reply(dbot.t('unprimary_error'));
|
event.reply(dbot.t('unprimary_error'));
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user