Forbid #spect_ and #multi_ manual join from game clients
This commit is contained in:
@@ -8,4 +8,4 @@ def handle(userToken, packetData):
|
||||
if matchID not in glob.matches.matches or not userToken.tournament:
|
||||
return
|
||||
userToken.matchID = matchID
|
||||
chat.joinChannel(token=userToken, channel="#multi_{}".format(matchID))
|
||||
chat.joinChannel(token=userToken, channel="#multi_{}".format(matchID), force=True)
|
@@ -7,5 +7,5 @@ def handle(userToken, packetData):
|
||||
matchID = packetData["matchID"]
|
||||
if matchID not in glob.matches.matches or not userToken.tournament:
|
||||
return
|
||||
chat.partChannel(token=userToken, channel="#multi_{}".format(matchID))
|
||||
chat.partChannel(token=userToken, channel="#multi_{}".format(matchID), force=True)
|
||||
userToken.matchID = 0
|
Reference in New Issue
Block a user