remove the #userlog channel
This commit is contained in:
parent
b42a70d00a
commit
2e2fb4c609
2 changed files with 1 additions and 14 deletions
|
@ -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}]`);
|
||||
}
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue