fix
This commit is contained in:
parent
b82bb5c897
commit
c704e2dfa0
|
@ -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,
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue