diff --git a/modules/users/users.js b/modules/users/users.js index 3f82695..9ea6fdd 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -135,7 +135,7 @@ var users = function(dbot) { var secondaryUser = event.params[2]; 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; updateAliases(event, secondaryUser, primaryUser); updateChannels(event, secondaryUser, primaryUser);