From c704e2dfa0b79dfe852320ededfd2afc0eb97337 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sun, 7 Apr 2024 18:55:43 -0400 Subject: [PATCH] fix --- client.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client.js b/client.js index 4cb52be..da63069 100755 --- a/client.js +++ b/client.js @@ -14,8 +14,8 @@ const emitter = require("events"); const deek = new emitter(); const name = "rena_chan"; -const password = "rena"; -const mc_password = "rena"; +const password = "pass"; +const mc_password = "pass"; const userid = 12; var channels = []; var ws = []; @@ -56,7 +56,10 @@ async function send_mc(username, message){ function mc_escape(str){ - return str.replaceAll('"', '\"').replaceAll("\n", " "); + return str.replace( + /[^-!\"#$%&'()*+,.\/0123456789:;<=>?@[\\\]^_'abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø׃áíóúñѪº¿®¬½¼¡«» ]/gi, + "" + ); } /*