3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00

without instead o splice

This commit is contained in:
reality 2013-01-13 15:27:45 +00:00
parent e2cb5ea77d
commit f6d69fe137

View File

@ -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);