From 2e2fb4c6094b548b3eab66667de0191c66b71009 Mon Sep 17 00:00:00 2001 From: Holly Date: Tue, 28 Jun 2022 00:27:18 +0100 Subject: [PATCH] remove the #userlog channel --- server/Packets/Logout.js | 9 --------- server/loginHandler.js | 6 +----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/server/Packets/Logout.js b/server/Packets/Logout.js index d475313..feea405 100644 --- a/server/Packets/Logout.js +++ b/server/Packets/Logout.js @@ -17,14 +17,5 @@ module.exports = function(CurrentUser) { // Remove user from user list global.users.remove(CurrentUser.uuid); - const osuPacketWriter = new osu.Bancho.Writer(); - osuPacketWriter.SendMessage({ - sendingClient: global.botUser.username, - message: `User ${CurrentUser.username} has logged out.`, - target: "#userlog", - senderId: global.botUser.id - }); - global.StreamsHandler.sendToStream("#userlog", osuPacketWriter.toBuffer); - consoleHelper.printBancho(`User logged out, took ${Date.now() - logoutStartTime}ms. [User: ${CurrentUser.username}]`); } \ No newline at end of file diff --git a/server/loginHandler.js b/server/loginHandler.js index d0575f5..40bf920 100644 --- a/server/loginHandler.js +++ b/server/loginHandler.js @@ -112,15 +112,11 @@ module.exports = async function(req, res, loginInfo) { // peppy pls, why osuPacketWriter.ChannelListingComplete(); - // Add user to chat channels + // Add user to #osu osuPacketWriter.ChannelJoinSuccess("#osu"); if (!global.StreamsHandler.isUserInStream("#osu", NewUser.uuid)) global.StreamsHandler.addUserToStream("#osu", NewUser.uuid); - osuPacketWriter.ChannelJoinSuccess("#userlog"); - if (!global.StreamsHandler.isUserInStream("#userlog", NewUser.uuid)) - global.StreamsHandler.addUserToStream("#userlog", NewUser.uuid); - // List all channels out to the client for (let i = 0; i < global.channels.length; i++) { osuPacketWriter.ChannelAvailable({