how does a restraining order affect child custody