Fix crashing when titan dev appears

This commit is contained in:
Jeremy Zhang 2017-09-15 07:15:51 +00:00
parent 80d89b49f8
commit a0a2f3951a

View File

@ -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": []};