aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 3a819b2..b2e224d 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -457,6 +457,8 @@ class Main {
nameDiv.textContent = name + ": ";
final textDiv = document.createSpanElement();
+ text = text.htmlEscape();
+
if (text.startsWith("/")) {
if (name == personal.name) handleCommands(text.substr(1));
} else {
@@ -464,7 +466,6 @@ class Main {
text = filter.regex.replace(text, filter.replace);
}
}
- text = text.htmlEscape();
textDiv.innerHTML = text;
final isInChatEnd = msgBuf.scrollHeight - msgBuf.scrollTop == msgBuf.clientHeight;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage