aboutsummaryrefslogtreecommitdiff
path: root/webAO/encoding.js
diff options
context:
space:
mode:
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