Archived
1
0

update livechan.js

This commit is contained in:
Jeff Becker 2016-07-10 07:05:19 -04:00
parent 32566bfd84
commit 671db6e483
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -857,6 +857,11 @@ ConvoBar.prototype.show = function(msgid) {
function Chat(domElem, channel, options) { function Chat(domElem, channel, options) {
var self = this; var self = this;
this.name = channel.toLowerCase(); this.name = channel.toLowerCase();
if (this.name == "") {
this.name = "ukko";
} else {
this.name = "overchan." + this.name;
}
this.domElem = domElem; this.domElem = domElem;
this.lastOp = null; this.lastOp = null;
if (options) { if (options) {
@ -997,7 +1002,7 @@ Chat.prototype.sendInput = function(event) {
var board; var board;
if(convo) if(convo)
board = self.chatElems.convobar.holder[convo].group; board = self.chatElems.convobar.holder[convo].group;
if (!board) board = "overchan.random"; if (!board) board = "overchan.live";
console.log(board); console.log(board);
var subject = self.chatElems.input.subject.value; var subject = self.chatElems.input.subject.value;
self.readImage(inputElem.file, function(fdata, fname, ftype) { self.readImage(inputElem.file, function(fdata, fname, ftype) {