mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
without instead o splice
This commit is contained in:
parent
e2cb5ea77d
commit
f6d69fe137
@ -135,7 +135,7 @@ var users = function(dbot) {
|
|||||||
var secondaryUser = event.params[2];
|
var secondaryUser = event.params[2];
|
||||||
|
|
||||||
if(_.include(knownUsers.users, primaryUser) && _.include(knownUsers.users, secondaryUser)) {
|
if(_.include(knownUsers.users, primaryUser) && _.include(knownUsers.users, secondaryUser)) {
|
||||||
knownUsers.users.splice(knownUsers.users.indexOf(secondaryUser), 1);
|
knownUsers.users = _.without(knownUsers.users, secondaryUser);
|
||||||
knownUsers.aliases[secondaryUser] = primaryUser;
|
knownUsers.aliases[secondaryUser] = primaryUser;
|
||||||
updateAliases(event, secondaryUser, primaryUser);
|
updateAliases(event, secondaryUser, primaryUser);
|
||||||
updateChannels(event, secondaryUser, primaryUser);
|
updateChannels(event, secondaryUser, primaryUser);
|
||||||
|
Loading…
Reference in New Issue
Block a user