Permalink
Browse files

replaced another outdated identifier

  • Loading branch information...
1 parent 1825125 commit 5f651011a3b8becc3f836fcb01a52359f6efcf39 Montana Rowe committed Feb 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 chat_app/server.js
View
@@ -85,7 +85,7 @@ MySocket.prototype.setname = function setname(name, fn){
fn(true);
} else {
fn(false);
- setUser(socket.name = name);
+ setUser(this.name = name);
this.broadcast.emit("announcement", name + " connected.");
io.sockets.emit("users", users);
}

0 comments on commit 5f65101

Please sign in to comment.