'-xmpphost' option required in combination with '-starttls xmpp' was missing in determine_optimal_proto() Also tweaked a couple of log messages