diff options
author | lassulus <lassulus@googlemail.com> | 2013-11-06 21:52:51 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-11-06 21:52:51 +0100 |
commit | c4854e60e33bc81cb5b6140241026576cbddcc0d (patch) | |
tree | 9e55eeb4a11cf73c0d1a3e27bc4d7329cba52684 /webchat/hello_web.js | |
parent | 1c815ad777fadd5cfa6f54b20d4a0f02206fe7b7 (diff) |
webchat: write only ip as name
Diffstat (limited to 'webchat/hello_web.js')
-rw-r--r-- | webchat/hello_web.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webchat/hello_web.js b/webchat/hello_web.js index dd2f26e3..86e12957 100644 --- a/webchat/hello_web.js +++ b/webchat/hello_web.js @@ -47,7 +47,7 @@ irc_client.on('message#krebs', function(from, message) { var echo = sockjs.createServer(); echo.on('connection', function(conn) { - var origin = '['+conn.remoteAddress+':'+conn.remotePort+']'; + var origin = conn.remoteAddress; Clients.push(conn); Clients.broadcast({from: 'system', message: origin + ' has joined'}) irc_client.say("#krebs", origin + ' has joined'); |