diff options
author | lassulus <lassulus@googlemail.com> | 2013-11-06 19:03:30 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-11-06 19:03:30 +0100 |
commit | 79ce309b9ec09a76506db28e8f1eb9a942bd2429 (patch) | |
tree | 70243f15582e0c31c772377bc6c56edf75a19201 /webchat | |
parent | b8035a82c362d24c2adf464a1c99fcc098b743c4 (diff) |
webchat: renamed name to origin
Diffstat (limited to 'webchat')
-rw-r--r-- | webchat/hello_web.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webchat/hello_web.js b/webchat/hello_web.js index 6f658901..45f6fc56 100644 --- a/webchat/hello_web.js +++ b/webchat/hello_web.js @@ -49,8 +49,8 @@ var echo = sockjs.createServer(); echo.on('connection', function(conn) { var origin = '['+conn.remoteAddress+':'+conn.remotePort+']'; Clients.push(conn); - irc_client.say("#krebs", name + ' has joined'); Clients.broadcast({from: 'system', message: origin + ' has joined'}) + irc_client.say("#krebs", origin + ' has joined'); conn.write(JSON.stringify({from: 'system', message: 'hello'})) conn.on('data', function(data) { console.log('data:',data); @@ -73,8 +73,8 @@ echo.on('connection', function(conn) { }); conn.on('close', function() { Clients.splice(Clients.indexOf(conn)); - irc_client.say("#krebs", name + ' has quit'); Clients.broadcast({from: 'system', message: origin + ' has quit'}) + irc_client.say("#krebs", origin + ' has quit'); }); }); |