From 671db6e483ee502f84060201ca0ee13cac34fb78 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 10 Jul 2016 07:05:19 -0400 Subject: [PATCH] update livechan.js --- contrib/js/livechan.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/js/livechan.js b/contrib/js/livechan.js index a0d4ce8..31b5b69 100644 --- a/contrib/js/livechan.js +++ b/contrib/js/livechan.js @@ -857,6 +857,11 @@ ConvoBar.prototype.show = function(msgid) { function Chat(domElem, channel, options) { var self = this; this.name = channel.toLowerCase(); + if (this.name == "") { + this.name = "ukko"; + } else { + this.name = "overchan." + this.name; + } this.domElem = domElem; this.lastOp = null; if (options) { @@ -997,7 +1002,7 @@ Chat.prototype.sendInput = function(event) { var board; if(convo) board = self.chatElems.convobar.holder[convo].group; - if (!board) board = "overchan.random"; + if (!board) board = "overchan.live"; console.log(board); var subject = self.chatElems.input.subject.value; self.readImage(inputElem.file, function(fdata, fname, ftype) {