President Trump on Thursday tweeted out how to deal with terrorists and suggested adopting US Gen. John “Black Jack” Pershing’s methods.

“Study what General Pershing of the United States did to terrorists when caught. There was no more Radical Islamic Terror for 35 years!,” the president wrote, apparently in reference to the attack in Barcelona, Spain, earlier on Thursday that officials blamed on terrorists.

It wasn’t the first time Trump touted Pershing’s methods.

During a South Carolina campaign rally in February 2016, Trump repeated a story about Pershing when he served as governor in the Philippines between 1909 and 1913 and put down a Muslim rebellion.

“They were having terrorism problems, just like we do,” Trump said. “And he caught 50 terrorists who did tremendous damage and killed many people. And he took the 50 terrorists, and he took 50 men and he dipped 50 bullets in pigs’ blood — you heard that, right? He took 50 bullets, and he dipped them in pigs’ blood. And he had his men load his rifles, and he lined up the 50 people, and they shot 49 of those people. And the 50th person, he said: You go back to your people, and you tell them what happened. And for 25 years, there wasn’t a problem. Okay? Twenty-five years, there wasn’t a problem.”

Politifact rated Trump’s story about Pershing “pants on fire.”

“Perhaps more important, the historians took issue with Trump’s suggestion that the tactic — if it was even used at all — actually worked to end tensions, noting that unrest persisted for years. In all, Trump’s claim is ridiculous, so we rate it Pants on Fire,” it wrote in February 2016.