mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 18:11:23 +01:00
Fix crashing when titan dev appears
This commit is contained in:
parent
80d89b49f8
commit
a0a2f3951a
@ -800,6 +800,9 @@
|
|||||||
replace.find(".blockcode").find("br").remove();
|
replace.find(".blockcode").find("br").remove();
|
||||||
}
|
}
|
||||||
var usrcachekey = username + "#" + message.author.discriminator;
|
var usrcachekey = username + "#" + message.author.discriminator;
|
||||||
|
if (usrcachekey.startsWith("(Titan Dev) ")) {
|
||||||
|
usrcachekey = usrcachekey.substr(12);
|
||||||
|
}
|
||||||
if (!(usrcachekey in message_users_cache)) {
|
if (!(usrcachekey in message_users_cache)) {
|
||||||
message_users_cache[usrcachekey] = {"data": {}, "msgs": []};
|
message_users_cache[usrcachekey] = {"data": {}, "msgs": []};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user