More refactoring

This commit is contained in:
calzoneman 2013-12-12 17:09:49 -06:00
parent cfd1b0618d
commit a14363a845
9 changed files with 147 additions and 81 deletions

View file

@ -49,6 +49,7 @@ Callbacks = {
if (CHANNEL.opts.password) {
socket.emit("channelPassword", CHANNEL.opts.password);
}
/*
if(NAME && SESSION) {
socket.emit("login", {
name: NAME,
@ -61,6 +62,7 @@ Callbacks = {
name: CLIENT.name
});
}
*/
$("<div/>").addClass("server-msg-reconnect")
.text("Connected")
.appendTo($("#messagebuffer"));

View file

@ -478,7 +478,7 @@ $(window).resize(function() {
/* load channel */
var loc = document.location+"";
var m = loc.match(/\/old\/([a-zA-Z0-9-_]+)$/);
var m = loc.match(/\/r\/([a-zA-Z0-9-_]+)$/);
if(m) {
CHANNEL.name = m[1];
}