Backwards compatibility for formatChatMessage

This commit is contained in:
calzoneman 2013-11-19 13:45:24 -06:00
parent a232b96786
commit 21bb2b9a4e
1 changed files with 6 additions and 0 deletions

View File

@ -1442,6 +1442,12 @@ function sendVideoUpdate() {
/* chat */ /* chat */
function formatChatMessage(data) { function formatChatMessage(data) {
// Backwards compat
if (!data.meta || data.msgclass) {
data.meta = {
addClass: data.msgclass
};
}
// Phase 1: Determine whether to show the username or not // Phase 1: Determine whether to show the username or not
var skip = data.username === LASTCHATNAME; var skip = data.username === LASTCHATNAME;
if(data.meta.addClass === "server-whisper") if(data.meta.addClass === "server-whisper")