People are comparing Trump's response to Barcelona terror attack versus Obama's

Trump in trouble again – this time over his response to the barcelona attacks (Rex)

Americans are turning to the their president at a time of terror abroad – though that just happens to be Barack Obama rather than Donald Trump.

Following the deadly events in Barcelona, many are pointing out the difference in the responses of the former US president and the one who replaced him.

While Obama responded to the attack saying the US would “always stand with our Spanish friends”, Trump found yet more controversy.

MORE: Odds suggest a 50% chance of Donald Trump’s impeachment

MORE: Trump advisor interview was “an accident”

Barack Obama’s response to the Barcelona terror attack (Twitter)

After tweeting that the US condemned the terror attack, which left at least 14 people dead, he then went online to cite a tale about General Pershing – and found himself roundly condemned.

“Study what General Pershing of the United States did to terrorists when caught. There was no more Radical Islamic Terror for 35 years!” the current president tweeted.

He was referring to the story of Pershing, a US military leader, executing Muslim insurgents in the Philippines in the early 1900s with bullets dipped in pig’s blood. Muslims consider pig’s blood to be unholy.

President Trump’s message (Twitter)

The trouble is the story has been debunked as a myth.

Historians say Pershing never ordered such a move, though some troops may have done so. and that there were deliberate attempts to offend Muslims during that conflict.

And users on Twitter will quick to point out the president’s historical error., and claiming it is not the first time he used the story, claiming he used it during the presidential election campaign as well.

Twitter users took to social media to try and correct the president (Twitter)

That was not the only response.

Others pointed out that Obama’s response to the tragedy was more “presidential” than Trump’s.

And yet others claimed the current president was “peddling” a conspiracy theory in his re-telling of the General Pershing story.

One social media user accused the president of “peddling a conspiracy theory” (Twitter)

It is the second victory on Twitter this week for Obama.

While Trump was getting into deep trouble over his responses to the violence in Charlottesville last weekend, Obama made Twitter history when his message about the riots became the most-liked in history.

So far, it has been liked more than four million times, smashing the previous record .