Daniel Maddocks, of Glossop, has been given a restraining order