Alert users when entering tournament matches, make impossible to join tournament matches from ui

This commit is contained in:
Giuseppe Guerra
2017-08-02 00:29:08 +02:00
parent af554c94d5
commit 86995feb34
2 changed files with 7 additions and 4 deletions

View File

@@ -308,6 +308,10 @@ class token:
chat.joinChannel(token=self, channel="#multi_{}".format(self.matchID))
self.enqueue(serverPackets.matchJoinSuccess(matchID))
# Alert the user if we have just joined a tourney match
if match.isTourney:
self.enqueue(serverPackets.notification("You are now in a tournament match."))
def leaveMatch(self):
"""
Leave joined match, match stream and match channel