Send available channel information
This commit is contained in:
parent
210201de15
commit
aadae11513
1 changed files with 7 additions and 3 deletions
|
@ -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}!`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue