The delusional man who allegedly smashed his way into Rihanna's L.A. home and also claimed to be her "future husband" has just been hit with a restraining order, TMZ has learned.
We broke the story ... Jonathan Whooper was taken into custody on Oct. 4 after cops ID'd him as the man who threw a chair through a glass door at RiRi's Pacific Palisades home on Sept. 29.
According to court docs obtained by TMZ ... Whooper made multiple trips to the home. During the incident on the 29th, cops say he broke into the home, triggering the alarm.
When he couldn't disarm the system, he decided to leave ... but not before breaking a glass patio table.
According to the docs, Whooper returned to the home on October 4th ... but this time, he was confronted by security. When asked why he was there, Whooper explained, he was "there to see Rihanna."
When the guard ordered him to leave, Whooper allegedly said, "Do you know who I am? I am Rihanna's future husband!"
Police arrested Whooper later that day a few miles from Rihanna's home. He was charged with prowling and felony attempted burglary, vandalism and stalking.
Rihanna begged the court for protection -- claiming she's suffered "substantial emotional distress and concern for her personal safety."
However, RiRi says she's unable to testify as a witness in the case because she's "currently on tour." Hey, girl's gotta work.
The judge decided Rihanna has a legitimate concern -- and issued a temporary restraining order against Whooper, ordering him to stay at least 100 yards away.
The case is due back in court later this month -- where Rihanna will most likely seek to make the order more permanent.