From 19a70983615ab83e2139aafb298a0d8ccaf2543b Mon Sep 17 00:00:00 2001 From: Lamp Date: Fri, 25 Jan 2019 23:45:11 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20"bodge=20room=20"=EC=8B=AC=EC=8B=AC"?= =?UTF-8?q?=20always=20visible"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit af8ce619825a66fe9214ea41a78e082f12b9fcad --- src/mppbridger/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mppbridger/index.js b/src/mppbridger/index.js index 43a1ebf..9b171ce 100755 --- a/src/mppbridger/index.js +++ b/src/mppbridger/index.js @@ -43,7 +43,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site = site == "CMPC" ? new Client("ws://charsy.meowbin.com:16562") : undefined; if (!gClient) return console.error(`Invalid site ${site}`); - gClient.setChannel(/*(site == "MPP" && room == "lobby") ? "lolwutsecretlobbybackdoor" : */room, {visible: room == "심심"}); + gClient.setChannel(/*(site == "MPP" && room == "lobby") ? "lolwutsecretlobbybackdoor" : */room, {visible:false}); gClient.start(); // maintain the client's presence in the channel @@ -51,7 +51,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site = // if client is connected and not in a channel (meaning setChannel failed due to ratelimit because another client joined a channel with the same user within the last second) OR client is in a channel but it is not the right channel… if ((gClient.isConnected() && !gClient.channel) || (gClient.channel && gClient.channel._id != room)) // …set the channel! - gClient.setChannel(room, {visible: room == "심심"}); + gClient.setChannel(room, {visible:false}); }, 1000); let lastError;