; and (B) includes— (i) a dating partner or former dating partner (as defined in section 2266); and (ii) any other person similarly situated to a spouse who is protected by the domestic or family violence laws of the State or tribal jurisdiction in which the injury occurred or where the victim resides. ; and (2) in paragraph (33)(A)— (A) in clause (i), by inserting after Tribal law the following: , or under a published local ordinance ; and (B) in clause (ii), by inserting intimate partner, after spouse, each place it appears. 802. Prohibiting persons convicted of stalking from possessing firearms Section 922 of title 18, United States Code, is amended— (1) in subsection (d)— (A) in paragraph (8), by striking or at the end; (B) in paragraph (9), by striking the period at the end and inserting ; or ; and (C) by inserting after paragraph (9) the following: (10) who has been convicted in any court of a misdemeanor crime of stalking. ; and (2) in subsection (g)— (A) in paragraph (8), by striking or at the end; (B) in paragraph (9), by striking the comma at the end and inserting ; or ; and (C) by inserting after paragraph (9) the following: (10) who has been convicted in any court of a misdemeanor crime of stalking, . 803. Unlawful sale of firearm to a person subject to a protection order Section 922 of title 18, United States Code, is amended— (1) in subsection (d)(8), by striking that restrains such person and all that follows, and inserting described in subsection (g)(8); ; and (2) by amending subsection (g)(8) to read as follows: (8) who is subject to a court order— (A) that was issued— (i) after a hearing of which such person received actual notice, and at which such person had an opportunity to participate; or (ii) after an ex parte hearing, after which such person received actual notice and had opportunity to participate at a subsequent hearing— (I) within the time required for such an ex parte order pursuant to State, tribal, or territorial law