diff --git a/server/Packets/TourneyJoinMatchChannel.js b/server/Packets/TourneyJoinMatchChannel.js index b50749c..8f7e9bc 100644 --- a/server/Packets/TourneyJoinMatchChannel.js +++ b/server/Packets/TourneyJoinMatchChannel.js @@ -12,14 +12,14 @@ module.exports = function(CurrentUser, MatchID) { } } - if (global.StreamsHandler.isUserInStream(match.matchStreamName, CurrentUser.uuid)) - return global.consoleHelper.printBancho(`Did not add user to channel ${match.matchStreamName} because they are already in it`); + if (global.StreamsHandler.isUserInStream(match.matchChatStreamName, CurrentUser.uuid)) + return global.consoleHelper.printBancho(`Did not add user to channel ${match.matchChatStreamName} because they are already in it`); const osuPacketWriter = new osu.Bancho.Writer; osuPacketWriter.ChannelJoinSuccess("#multiplayer"); - if (!global.StreamsHandler.isUserInStream(match.matchStreamName, CurrentUser.uuid)) - global.StreamsHandler.addUserToStream(match.matchStreamName, CurrentUser.uuid); + if (!global.StreamsHandler.isUserInStream(match.matchChatStreamName, CurrentUser.uuid)) + global.StreamsHandler.addUserToStream(match.matchChatStreamName, CurrentUser.uuid); CurrentUser.addActionToQueue(osuPacketWriter.toBuffer); } diff --git a/server/Packets/TourneyLeaveMatchChannel.js b/server/Packets/TourneyLeaveMatchChannel.js index f1f3fd1..6a409b5 100644 --- a/server/Packets/TourneyLeaveMatchChannel.js +++ b/server/Packets/TourneyLeaveMatchChannel.js @@ -8,14 +8,14 @@ module.exports = function(CurrentUser, MatchID) { match.isTourneyMatch = false; match.tourneyClientUsers = []; - if (global.StreamsHandler.isUserInStream(match.matchStreamName, CurrentUser.uuid)) - return global.consoleHelper.printBancho(`Did not add user to channel ${match.matchStreamName} because they are already in it`); + if (global.StreamsHandler.isUserInStream(match.matchChatStreamName, CurrentUser.uuid)) + return global.consoleHelper.printBancho(`Did not add user to channel ${match.matchChatStreamName} because they are already in it`); const osuPacketWriter = new osu.Bancho.Writer; osuPacketWriter.ChannelRevoked("#multiplayer"); - if (!global.StreamsHandler.isUserInStream(match.matchStreamName, CurrentUser.uuid)) - global.StreamsHandler.removeUserFromStream(match.matchStreamName, CurrentUser.uuid); + if (!global.StreamsHandler.isUserInStream(match.matchChatStreamName, CurrentUser.uuid)) + global.StreamsHandler.removeUserFromStream(match.matchChatStreamName, CurrentUser.uuid); CurrentUser.addActionToQueue(osuPacketWriter.toBuffer); } else {