aboutsummaryrefslogtreecommitdiff
path: root/webAO/encoding.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-07 16:48:12 +0200
committersD <stoned@derpymail.org>2020-04-07 16:48:12 +0200
commit387209af552e5ee3bde1606733acb209fea10fe0 (patch)
treeb89db7400d31c59d0291f9e226b0db6deae220ba /webAO/encoding.js
parentc76b2a871a385cb4ae398e2fe067a26a6b356bb9 (diff)
parent4ee2e89a6982088aaf28f9e8adf0dac807f9e86b (diff)
Merge branch 'master' into chatboxstyle
Diffstat (limited to 'webAO/encoding.js')
-rw-r--r--webAO/encoding.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/webAO/encoding.js b/webAO/encoding.js
index 76e0b6d..3249617 100644
--- a/webAO/encoding.js
+++ b/webAO/encoding.js
@@ -82,4 +82,13 @@ export function decodeChat(estring) {
} else {
return estring;
}
+}
+
+/**
+ * XXX: a nasty hack made by gameboyprinter.
+ * @param {string} msg chat message to prepare for display
+ */
+export function prepChat(msg) {
+ // TODO: make this less awful
+ return unescapeChat(decodeChat(msg));
} \ No newline at end of file