improve identification of muc service (#3094)

This commit is contained in:
ChaosKid42 2018-06-24 15:42:54 +02:00 committed by Daniel Gultsch
parent b0e1b5b02d
commit 42b1e56cd9

View file

@ -1541,6 +1541,7 @@ public class XmppConnection implements Runnable {
for (final Entry<Jid, ServiceDiscoveryResult> cursor : disco.entrySet()) { for (final Entry<Jid, ServiceDiscoveryResult> cursor : disco.entrySet()) {
final ServiceDiscoveryResult value = cursor.getValue(); final ServiceDiscoveryResult value = cursor.getValue();
if (value.getFeatures().contains("http://jabber.org/protocol/muc") if (value.getFeatures().contains("http://jabber.org/protocol/muc")
&& value.hasIdentity("conference", "text")
&& !value.getFeatures().contains("jabber:iq:gateway") && !value.getFeatures().contains("jabber:iq:gateway")
&& !value.hasIdentity("conference", "irc")) { && !value.hasIdentity("conference", "irc")) {
servers.add(cursor.getKey().toString()); servers.add(cursor.getKey().toString());