Better support for old servers

This commit is contained in:
Guangcong Luo
2013-05-09 18:40:41 -07:00
parent 84c922c345
commit 63f5dd5d2d
2 changed files with 8 additions and 0 deletions

View File

@@ -574,6 +574,11 @@
this.parseUserList(row[1]);
break;
case 'formats':
// deprecated; please send formats to the global room
app.parseFormats(row);
break;
case 'raw':
this.$chat.append('<div class="notice">' + Tools.sanitizeHTML(row.slice(1).join('|')) + '</div>');
break;

View File

@@ -447,6 +447,9 @@
} else if (data.battlelog) {
self.rooms[data.room].init(data.battlelog.join('\n'));
}
if (data.u) {
self.rooms[data.room].parseUserList(data.u);
}
}
},
update: function (data) {