Patches for check_ircd fails when using epn [sf#2864973] [#1045]