I know nothing about Ryanair but I cannot imagine they would fire someone for removing themselves from flight duty because their abilities are compromised by a smoker in the cockpit.
People have been fired by MOL for less!
Corrected for spelling error!