From a0a2f3951a3ea90a5d72a08054e27839d967efd8 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 15 Sep 2017 07:15:51 +0000 Subject: [PATCH] Fix crashing when titan dev appears --- webapp/titanembeds/static/js/embed.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 919dd38..ac1b6ff 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -800,6 +800,9 @@ replace.find(".blockcode").find("br").remove(); } var usrcachekey = username + "#" + message.author.discriminator; + if (usrcachekey.startsWith("(Titan Dev) ")) { + usrcachekey = usrcachekey.substr(12); + } if (!(usrcachekey in message_users_cache)) { message_users_cache[usrcachekey] = {"data": {}, "msgs": []};