Unfortunatelly these are two different classes instantiated new SSLIRCConnection(), new IRCConnection() - so no way to remove the duplication