diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index b9a52c5..4900508 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -774,6 +774,7 @@ def multiplayer(fro, chan, message): if len(message) < 2: raise exceptions.invalidArgumentsException("Wrong syntax: !mp make ") matchID = glob.matches.createMatch(" ".join(message[1:]), generalUtils.stringMd5(generalUtils.randomString(32)), 0, "Tournament", "", 0, -1, isTourney=True) + glob.matches.matches[matchID].sendUpdates() return "Tourney match #{} created!".format(matchID) def mpJoin(): diff --git a/events/createMatchEvent.py b/events/createMatchEvent.py index 886492d..00f3dca 100644 --- a/events/createMatchEvent.py +++ b/events/createMatchEvent.py @@ -18,7 +18,7 @@ def handle(userToken, packetData): # Make sure the match has been created if matchID not in glob.matches.matches: - raise exceptions.matchCreateError + raise exceptions.matchCreateError() # Get match object match = glob.matches.matches[matchID] diff --git a/helpers/chatHelper.py b/helpers/chatHelper.py index ed3c8d6..4a053bc 100644 --- a/helpers/chatHelper.py +++ b/helpers/chatHelper.py @@ -164,8 +164,8 @@ def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True): #tokenString = token.token # Make sure this is not a tournament client - if token.tournament: - raise exceptions.userTournamentException() + # if token.tournament: + # raise exceptions.userTournamentException() # Make sure the user is not in restricted mode if token.restricted: