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({