Permalink
Browse files

Merge pull request #51 from microp11/master

splice vs. slice, fixed bug in handling webusers.
  • Loading branch information...
2 parents f188cf3 + 5f468f2 commit fe8b1cc73ea826be9df6042a3531957686316e93 @chrismatthieu chrismatthieu committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 irc.js
View
2 irc.js
@@ -128,7 +128,7 @@ var appProcessor = function (action, client, msg, socket) {
case "deleteWebUsers":
for (var i = 0; i < webUsers.length; i++) {
if (webUsers[i] == msg.data) {
- webUsers.slice(i,1);
+ webUsers.splice(i,1);
webUsersIsDirty = true;
break;
}

0 comments on commit fe8b1cc

Please sign in to comment.