From 21bb2b9a4e482e34eff5e1cb34d143024715339f Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 19 Nov 2013 13:45:24 -0600 Subject: [PATCH] Backwards compatibility for formatChatMessage --- www/assets/js/util.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/assets/js/util.js b/www/assets/js/util.js index bef63a3e..774a7c27 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -1442,6 +1442,12 @@ function sendVideoUpdate() { /* chat */ 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 var skip = data.username === LASTCHATNAME; if(data.meta.addClass === "server-whisper")