From 6113c27105782fec13b45d2265aa6389326c81fc Mon Sep 17 00:00:00 2001 From: RblSb Date: Wed, 26 Feb 2020 16:41:10 +0300 Subject: More emotes --- src/client/Main.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/Main.hx') 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; -- cgit v1.2.3