handlers.player_in_room check p.room is not None

This commit is contained in:
Ben 2020-02-14 21:59:43 +00:00
parent c6809070e7
commit 6c0b6a1239

View File

@ -256,5 +256,5 @@ def player_attribute(**attrs):
def player_in_room(*room_ids): def player_in_room(*room_ids):
def check_room_id(_, p): def check_room_id(_, p):
return p.room.id in room_ids return p.room is not None and p.room.id in room_ids
return check(check_room_id) return check(check_room_id)