A besotted man who bombarded ‘The One Show’ presenter Alex Jones with hundreds of messages and declarations of love on Twitter has been banned from having any further contact with her.

Shane Goldsmith, 44 and of no fixed abode, admitted to sending the 38 year old Welsh presenter a string of messages over the course of several months, even going as far as waiting outside the BBC’s Broadcasting House and waiting for her to leave.

He was due to stand trial on Monday (February 8th) for one case of harassment, but his admission today prompted the prosecutor Nicola Flint to drop the case to allow the court to imposing a restraining order. He is now banned indefinitely from contacting the star, her new husband Charlie Thomson, any of her family and is not allowed near her home or any place she’s known to be working.

Alex Jones'The One Show' presenter Alex Jones leaving the BBC studios in December 2015

Until his court date, Goldsmith had spent four months held in hospital for treatment for his mental health problems. Appearing in the dock with healthcare workers and security guards, admitted that his actions had caused Jones “alarm and distress” and that his affection was “unwanted”.

More: Ben Stiller and Owen Wilson turn up on ‘SNL’ as their ‘Zoolander’ characters

Issuing the order, Chief Magistrate Howard Riddle said that the offender was “likely to pursue a course of conduct likely to lead to harassment”. Wrapping up his verdict, he added “I hope the treatment you are receiving is helpful to you as well as to the community.”

On one occasion, Goldsmith gained access to ‘The One Show’ audience and shouted out repeatedly to Jones during a live broadcast. On another, he said to have sent her a lewd message referring to her “fantastic t**s” and copied in co-presenter Chris Evans and TV host Paddy McGuiness.

More: Bruce Willis’ legendarily awkward interview for ‘The One Show’ [archive]