Samuel Watson, 18, needed hospital treatment after the attack in the Grand Central pub in Livingston, when Graeme McGill hit him in the head while holding a glass.
McGill, of Livingston, pleaded guilty to assaulting Mr Watson to his injury on April 17 this year.