Permalink
Browse files

print the address of the connecting user

  • Loading branch information...
1 parent 4b94220 commit e53dd455b0c195a737639a3534de31c4db5c234f @ry ry committed Jun 16, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 server.js
View
@@ -127,6 +127,9 @@ function onLoad () {
res.simpleJSON(400, {error: "Nick in use"});
return;
}
+
+ puts("connection: " + nick + "@" + res.connection.remoteAddress);
+
channel.appendMessage(session.nick, "join");
res.simpleJSON(200, { id: session.id, nick: session.nick});
});

0 comments on commit e53dd45

Please sign in to comment.