mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
[Close #595]
This commit is contained in:
parent
4537651367
commit
b01fce2cc8
@ -172,6 +172,9 @@ var commands = function(dbot) {
|
||||
this.db.save('user_redirs', oldUser.id, user.id, function() {});
|
||||
this.db.save('users', user.id, user, function(err) {
|
||||
if(!err) {
|
||||
if(_.has(this.userCache, event.server) && _.has(this.userCache[event.server], oldUser.currentNick)) {
|
||||
delete this.userCache[event.server][oldUser.currentNick];
|
||||
}
|
||||
event.reply(dbot.t('merged_users', {
|
||||
'old_user': secondaryUser,
|
||||
'new_user': primaryUser
|
||||
|
Loading…
Reference in New Issue
Block a user