aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2017-12-12 18:28:57 +0100
committerstonedDiscord <stoned@derpymail.org>2017-12-12 18:28:57 +0100
commitcf9caf04b4bfb7bf49628449674e344793570743 (patch)
tree9fa0d931c74a5e9a92eb1918c979c74655fc27a9
parent198231c4685a90cf10d819be7eedaa265dc9404e (diff)
idk if this helps
-rw-r--r--client.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/client.js b/client.js
index d1aadb7..933b64e 100644
--- a/client.js
+++ b/client.js
@@ -105,11 +105,12 @@ function parseINI(data) {
return value;
}
-function escapeChat(string) {
-string.replace("#","<pound>");
-string.replace("&","<and>");
-string.replace("%","<percent>");
-string.replace("$","<dollar>");
+function escapeChat(estring) {
+estring.replace("#","<pound>");
+estring.replace("&","<and>");
+estring.replace("%","<percent>");
+estring.replace("$","<dollar>");
+return estring;
}
function onOOCEnter(event) {