fix
This commit is contained in:
parent
b82bb5c897
commit
c704e2dfa0
|
@ -14,8 +14,8 @@ const emitter = require("events");
|
||||||
const deek = new emitter();
|
const deek = new emitter();
|
||||||
|
|
||||||
const name = "rena_chan";
|
const name = "rena_chan";
|
||||||
const password = "rena";
|
const password = "pass";
|
||||||
const mc_password = "rena";
|
const mc_password = "pass";
|
||||||
const userid = 12;
|
const userid = 12;
|
||||||
var channels = [];
|
var channels = [];
|
||||||
var ws = [];
|
var ws = [];
|
||||||
|
@ -56,7 +56,10 @@ async function send_mc(username, message){
|
||||||
|
|
||||||
function mc_escape(str){
|
function mc_escape(str){
|
||||||
|
|
||||||
return str.replaceAll('"', '\"').replaceAll("\n", " ");
|
return str.replace(
|
||||||
|
/[^-!\"#$%&'()*+,.\/0123456789:;<=>?@[\\\]^_'abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø׃áíóúñѪº¿®¬½¼¡«» ]/gi,
|
||||||
|
""
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue