summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-11-06 19:03:30 +0100
committerlassulus <lassulus@googlemail.com>2013-11-06 19:03:30 +0100
commit79ce309b9ec09a76506db28e8f1eb9a942bd2429 (patch)
tree70243f15582e0c31c772377bc6c56edf75a19201
parentb8035a82c362d24c2adf464a1c99fcc098b743c4 (diff)
webchat: renamed name to origin
-rw-r--r--webchat/hello_web.js4
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');
});
});