cmd_TURN.argtypes = 'int:nonneg'
def cmd_ANNOTATE(game, pw, yx, msg, connection_id):
- if not game.can_do_tile_with_pw(yx, pw):
+ if connection_id and not game.can_do_tile_with_pw(yx, pw):
raise GameError('wrong password for tile')
if msg == ' ':
if yx in game.annotations:
cmd_ANNOTATE.argtypes = 'string yx_tuple:nonneg string'
def cmd_PORTAL(game, pw, yx, msg, connection_id):
- if not game.can_do_tile_with_pw(yx, pw):
+ if connection_id and not game.can_do_tile_with_pw(yx, pw):
raise GameError('wrong password for tile')
if msg == ' ':
if yx in game.portals: