From c4854e60e33bc81cb5b6140241026576cbddcc0d Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 6 Nov 2013 21:52:51 +0100 Subject: webchat: write only ip as name --- webchat/hello_web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webchat') 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'); -- cgit v1.2.3