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
1 changed files with 1 additions and 0 deletions

View File

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