Prevent unsuccessful !joins to trigger the ping-if timer.

This commit is contained in:
Vgr E.Barry 2015-02-25 17:15:37 -05:00
parent 11dbb56a0e
commit 10706674c3

View File

@ -1127,10 +1127,13 @@ def join_player(cli, player, chan, who = None, forced = False):
elif player in pl:
cli.notice(who, "{0}'re already playing!".format("You" if who == player else "They"))
return
elif len(pl) >= var.MAX_PLAYERS:
cli.notice(who, "Too many players! Try again next time.")
return
elif var.PHASE != "join":
cli.notice(who, "Sorry, but the game is already running. Try again next time.")
return
else:
var.ROLES["person"].append(player)