A software engineer was arrested for hurling drunken abuse at door staff outside a city centre pub.
John Pendlebury (49) avoided public order convictions after he paid €500 to charity.
Judge Michael Walsh struck the case out.
Pendlebury, of Collins Avenue, Glasnevin, pleaded guilty to public intoxication and using threatening, abusive and insulting words or behaviour with intent to provoke a breach of the peace.
Garda Sergeant Gail Smith told Dublin District Court that officers were called to South William Street on February 23.
The accused was intoxicated outside a bar, shouting at staff members in the presence of the public, the court heard.
He was unsteady on his feet, and gardai told him to stop and asked for his details. He refused to give them and was arrested.
Pendlebury had no previous convictions and was very apologetic, the judge was told.
The judge said he would leave the accused without a criminal record if he paid €500 to the Ronald McDonald House charity.
After a brief adjournment, the money was paid and the case struck out.