restore name on mpp

This commit is contained in:
Lamp 2019-01-26 23:46:25 +00:00
parent 19a7098361
commit 5d114145bd
1 changed files with 3 additions and 3 deletions

View File

@ -73,13 +73,13 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
gClient.on('hi', ()=>{ gClient.on('hi', ()=>{
console.log(`[${site}][${room}] Received greeting`); console.log(`[${site}][${room}] Received greeting`);
if (!testmode) { if (!testmode) {
if (site == "MPP") { /*if (site == "MPP") {
if (room != "lobby") { if (room != "lobby") {
gClient.sendArray([{m: "userset", set: {name: "Anonymous" }}]); gClient.sendArray([{m: "userset", set: {name: "Anonymous" }}]);
} }
} else { } else {*/
gClient.sendArray([{m: "userset", set: {name: config.mppname }}]); gClient.sendArray([{m: "userset", set: {name: config.mppname }}]);
} //}
} }
gClient.sendArray([{m:'m',x:Math.floor(Math.random()*100),y:Math.floor(Math.random()*100)}]) gClient.sendArray([{m:'m',x:Math.floor(Math.random()*100),y:Math.floor(Math.random()*100)}])
}); });