From f6d69fe137af74a2d187daf4c77aa49564248fb7 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 13 Jan 2013 15:27:45 +0000 Subject: [PATCH] without instead o splice --- modules/users/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);