Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

print the address of the connecting user

  • Loading branch information...
commit e53dd455b0c195a737639a3534de31c4db5c234f 1 parent 4b94220
@ry ry authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  server.js
View
3  server.js
@@ -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});
});
Please sign in to comment.
Something went wrong with that request. Please try again.