A MASKED man who entered a Dublin pub armed with a machete and struck a patron over the head was identified after he took off his balaclava, a court heard.
Damien Fahey (29) claimed the incident was "a prank".
Judge Patrick Clyne ordered Fahey to complete 200 hours community service in lieu of six months in prison.
The defendant, of Fortlawn Drive in Blanchardstown, admitted before Blanchardstown District Court to possession of a machete capable of causing injury at Salmons, Mountview Shopping Centre on February 3, 2014.
Sergeant Maria Callaghan said Fahey came into the pub around 8.20pm brandishing the machete at about 10 patrons who were around the bar.
Sgt Callaghan said that when leaving the bar Fahey approached one of the patrons and struck him over the head.
There was no complaint of assault made, said Sgt Callaghan.
Fahey was wearing a balaclava but he took it off and was identified from CCTV, she said.
Defence solicitor Fiona Brennan said the incident was "high jinks" and "more a prank than anything".
Ms Brennan said the pub remained open and all relevant parties had left by the time gardai arrived.
Judge Clyne said Fahey was "acting the eejit".