This is when a character in a story or novel is aware of the irony in their situation and relishes in it.