I'm not sure that's irony. Just an plain error on my part, which you're right to point out. Piracy is also a pejorative label for copyright infringement.
Irony is the opposite of what you’d expect, or incongruity between what is expected and what occurs. I expect someone lecturing on safe driving to…well, know how to drive safely.
In this case it seemed like you were making a point about the strict legal sense of a word, but misusing a different legal term to do so.