In court, Viner pleaded guilty to conspiracy and obstruction of justice. After his sentence he will be banned from gaming for two years.

Viner said he was “awfully sorry”, that he never intended anything to happen and he thinks of it every day.

“We impose sentences not only for what people intend, but what happened,” said US District Judge Eric Melgren.

data-ad-format="auto">

How did a prank call kill an innocent man?

A “swatting” call is a hoax phone call designed to make special weapons and tactics (Swat) police raid a target’s house.

On 28 December 2017, Barriss told police he had shot his father and was holding the rest of his family hostage.

Image copyrightReutersImage caption Tyler Barriss pleaded guilty to a total of 51 charges

He gave police what he thought was Mr Gaskill’s address in Kansas.

However, the address provided by Mr Gaskill was not his own but that of Mr Finch, 28.

Armed police went to the property and shot dead Mr Finch, who had no involvement in the video game dispute.

Police say the responding officer shot Mr Finch after he moved his hands towards his waist.

US Attorney Stephen McAllister described swatting as “reckless, dangerous and, as this case proves, potentially tragic”.

The police officer involved was not charged as there was not enough evidence to show they acted unreasonably considering the context.

“Swatting is not a prank, and it is no way to resolve disputes among gamers,” Mr McAllister added, calling on gamers to “self-police their community to ensure that the practice of swatting is ended once and for all”.

More in USA

Views:8 Media playback is unsupported on your device Media captionThe man approached police in Buffalo before being pushed backwards Two US policemen have been charged with second-degree assault after they were filmed pushing a 75-year old protester to the ground, seriously injuring him. Aaron Torgalski, 39, and Robert McCabe, 32, pleaded not...

Views:8 Media playback is unsupported on your device Media captionThe man approached police in Buffalo before being pushed backwards An entire tactical unit of a US police department has quit after two officers accused of brutality were sent on unpaid leave, reports local media. In a video that went viral on Thursday,...