summaryrefslogtreecommitdiffstats
path: root/webchat/hello_web.js
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-06 21:57:27 +0100
committertv <tv@nomic.retiolum>2013-11-06 21:57:27 +0100
commitfda7a9cce373e0864c5c13c96dcf37733a357806 (patch)
tree36a47df59f42488f320a1792acdadc773f8d1b58 /webchat/hello_web.js
parenta0507027720aee72f1f10cbc2f7504a9960ed465 (diff)
parentbfef0d684e958e363641a0cedbd1a4c55cb70471 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'webchat/hello_web.js')
-rw-r--r--webchat/hello_web.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/webchat/hello_web.js b/webchat/hello_web.js
index dd2f26e3..8e2a0bb8 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');
@@ -94,8 +94,8 @@ var app = connect()
res.write('<script src="jquery-2.0.3.min.js"></script>');
res.write('<script src="client.js"></script>');
res.write('<div id=bg><div id=chatter>');
- res.write('hello, this is #krebs:<br>');
- res.write('<table id="chatbox"><tr id="foot"><td></td><td></td><td><input type="text" id="input"></td></tr></table>');
+ res.write('hello, this is the official krebs support:<br>');
+ res.write('<table id="chatbox"><tr id="foot"><td id="time"></td><td id="nick" class="chat_from"></td><td><input type="text" id="input"></td></tr></table>');
res.end('</div></div>');
})