Professional debuggingTM

This commit is contained in:
Giuseppe Guerra 2018-08-04 19:13:29 +02:00
parent 1dc37ecb77
commit 333cfca806
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ def multiplayer(fro, chan, message):
raise exceptions.invalidArgumentsException("Wrong syntax: !mp join <id>")
matchID = int(message[1])
userToken = glob.tokens.getTokenFromUsername(fro, ignoreIRC=True)
if userToken is not None:
if userToken is None:
raise exceptions.invalidArgumentsException(
"No game clients found for {}, can't join the match. "
"If you're a referee and you want to join the chat "