diff options
| author | RblSb <msrblsb@gmail.com> | 2020-02-26 16:41:10 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-02-26 16:41:10 +0300 |
| commit | 6113c27105782fec13b45d2265aa6389326c81fc (patch) | |
| tree | 5d8001d55d899cddf5369166ed53f56bcaa8f3f5 /src | |
| parent | aadb867a613c44d14cad27189c20b8fc0ef49a2d (diff) | |
More emotes
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/Main.hx | 3 |
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; |
