def lock_me(self, player):
        if self.key and (player.permissions & GOD or player.has_item(self.key)):
            self._locked = True
            message = self.close_me(player)
            self.room.tell_room((player.fancy_name(), self.direction) % '%s locked the %s door.\n', [player.name])
            if self.linked_exit:
                self.to_room.exits[self.linked_exit]._locked = True
                self.to_room.tell_room('The %s door was locked from the other side.\n' % self.linked_exit)
            return message + "You lock it."
        return "You can't lock that."
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/models/room_exit.py/RoomExit.lock_me/swapped operands of `%`