Send available channel information

This commit is contained in:
tgpethan 2020-11-03 02:09:39 +00:00
parent 210201de15
commit aadae11513

View file

@ -142,9 +142,13 @@ module.exports = function(req, res, loginInfo) {
global.StreamsHandler.addUserToStream("#userlog", userClass.id); global.StreamsHandler.addUserToStream("#userlog", userClass.id);
// List all channels out to the client // List all channels out to the client
//for (let i = 0; i < global.channels.length; i++) { for (let i = 0; i < global.channels.length; i++) {
// osuPacketWriter.ChannelAvailable(global.channels[i]); osuPacketWriter.ChannelAvailable({
//} channelName: global.channels[i].channelName,
channelTopic: global.channels[i].channelTopic,
channelUserCount: global.channels[i].channelUserCount
});
}
osuPacketWriter.Announce(`Welcome back ${loginInfo.username}!`); osuPacketWriter.Announce(`Welcome back ${loginInfo.username}!`);