From a76f2f396648bbd68bccc90ceed9644b3b434ba6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 24 Mar 2022 04:29:06 +0200 Subject: [PATCH] lucky i am --- files/assets/js/chat.js | 3 ++- files/templates/chat.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index e6847dad2..8a12ddff9 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -79,7 +79,8 @@ function send() { function quote(t) { textbox.style.height = '80px' - textbox.value = '> ' + t.previousElementSibling.innerHTML + '\n\n' + text = t.previousElementSibling.innerHTML.replace(/>/g, ">").replace(/\n/g, "\n>") + textbox.value = '> ' + text + '\n\n' textbox.focus() } diff --git a/files/templates/chat.html b/files/templates/chat.html index 732e8e30f..af1b98ade 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -81,7 +81,7 @@ - +