Like "The Purge," but lamer. (AP/Photo Helen O'Neill)

Book your plane tickets now: Ecstasy, ketamine and a ton of other drugs are now legal to possess in Ireland, but only until 12 a.m. on Thursday, reports the Irish Times.

On Tuesday the three-judge Court of Appeal ruled the 1977 Misuse of Drugs Act (Ireland's version of our Controlled Substances Act) illegal on a constitutional technicality: that the act was created without the consultation of the Irish Parliament. According to the Times, "an explanatory memorandum issued by the Department of Health said that as a result of the judgment, 'all substances controlled by means of Government Orders made under section 2(2) cease to be controlled with immediate effect, and their possession ceases to be an offence. These include ecstasy, benzodiazepines and new psychoactive substances, so-called 'headshop drugs.'"

That's left the Irish government scrambling to push through emergency legislation to patch up the loophole. But the earliest the legislation could take effect is 12 a.m. local time on Thursday, so in the interim the possession of a large number of previously outlawed drugs is technically legal.

The loophole doesn't affect some of the major recreational drugs, like marijuana, cocaine and heroin. And the sale of all drugs remains outlawed. But for the next 24 hours, you can legally possess and use drugs like ecstasy without fear of prosecution. The ruling may invalidate dozens of previous drug convictions according to Leo Varadkhar, the Irish Minister for Health. The situation in Ireland now is kind of like an incredibly boring version of the film "The Purge," in which all crime is made legal for one night a year. While not exactly blockbuster material, it might make for a good indie documentary?