improve identification of muc service (#3094)
This commit is contained in:
parent
b0e1b5b02d
commit
42b1e56cd9
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue