add check for irc and xmpp