Unify button styles. Display newly added tags in filter. Fix deleted character formatting.

This commit is contained in:
SillyLossy
2023-04-30 01:23:22 +03:00
parent 3725e38b20
commit 28addd6cad
3 changed files with 4 additions and 9 deletions

View File

@ -201,7 +201,7 @@ let safetychat = [
is_user: false,
is_name: true,
create_date: 0,
mes: "\n*You deleted a character/chat and arrived back here for safety reasons! Pick another character!*\n\n",
mes: "\n<i>You deleted a character/chat and arrived back here for safety reasons! Pick another character!</i>\n\n",
},
];
let chat_create_date = 0;
@ -917,7 +917,7 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) {
if (this_chid != undefined && !isSystem)
mes = mes.replaceAll("<", "&lt;").replaceAll(">", "&gt;"); //for welcome message
if (this_chid === undefined && !selected_group) {
if ((this_chid === undefined || this_chid == "invalid-safety-id") && !selected_group) {
mes = mes
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
.replace(/\n/g, "<br/>");