forked from GitHub/dbot
Stop alias if already exists in user
This commit is contained in:
parent
1cc83dc6bc
commit
e7addd9ff4
@ -45,7 +45,9 @@ var users = function(dbot) {
|
||||
}
|
||||
} else if(event.action == 'NICK') {
|
||||
var newNick = event.params.substr(1);
|
||||
knownUsers.aliases[newNick] = event.user;
|
||||
if(!knownUsers.users.include(newNick)) {
|
||||
knownUsers.aliases[newNick] = event.user;
|
||||
}
|
||||
}
|
||||
},
|
||||
'on': ['JOIN', 'NICK'],
|
||||
|
Loading…
Reference in New Issue
Block a user