aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-02-26 16:41:10 +0300
committerRblSb <msrblsb@gmail.com>2020-02-26 16:41:10 +0300
commit6113c27105782fec13b45d2265aa6389326c81fc (patch)
tree5d8001d55d899cddf5369166ed53f56bcaa8f3f5 /src/client
parentaadb867a613c44d14cad27189c20b8fc0ef49a2d (diff)
More emotes
Diffstat (limited to 'src/client')
-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