summaryrefslogtreecommitdiffstats
path: root/webchat
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-11-06 21:52:51 +0100
committerlassulus <lassulus@googlemail.com>2013-11-06 21:52:51 +0100
commitc4854e60e33bc81cb5b6140241026576cbddcc0d (patch)
tree9e55eeb4a11cf73c0d1a3e27bc4d7329cba52684 /webchat
parent1c815ad777fadd5cfa6f54b20d4a0f02206fe7b7 (diff)
webchat: write only ip as name
Diffstat (limited to 'webchat')
-rw-r--r--webchat/hello_web.js2
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');