Skip to content

Commit

Permalink
Fixed userPart - use splice (array) instead of split (string)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaines committed Jul 13, 2010
1 parent 66981c3 commit b91ccec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.js
Expand Up @@ -85,7 +85,7 @@ userPart = function(nick, timestamp) {
//put it in the stream
addMessage(nick, "left", timestamp, "part");
//remove the user from the list
nicks.split(nicks.indexOf(nick), 1);
nicks.splice(nicks.indexOf(nick), 1);
//update the UI
return updateUsersLink();
};
Expand Down

0 comments on commit b91ccec

Please sign in to comment.