mirror of
https://github.com/reality/dbot.git
synced 2025-01-23 10:34:31 +01:00
Stop alias if already exists in user
This commit is contained in:
parent
1cc83dc6bc
commit
e7addd9ff4
@ -45,8 +45,10 @@ var users = function(dbot) {
|
|||||||
}
|
}
|
||||||
} else if(event.action == 'NICK') {
|
} else if(event.action == 'NICK') {
|
||||||
var newNick = event.params.substr(1);
|
var newNick = event.params.substr(1);
|
||||||
|
if(!knownUsers.users.include(newNick)) {
|
||||||
knownUsers.aliases[newNick] = event.user;
|
knownUsers.aliases[newNick] = event.user;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'on': ['JOIN', 'NICK'],
|
'on': ['JOIN', 'NICK'],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user