summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-03 11:27:43 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-03 11:27:43 +0300
commit409484903558dfc9f7a6f8c8ead2fe47ff2f2dcf (patch)
tree92918ef46236972898e919555ff60c06909ea3f9
parent4985279039462adafdac1c9826b54a6b36dba5f6 (diff)
Jabber: fix for advanced compilance with XEP-0045
-rw-r--r--protocols/JabberG/src/jabber_groupchat.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp
index ccc3783881..7b5cd15de6 100644
--- a/protocols/JabberG/src/jabber_groupchat.cpp
+++ b/protocols/JabberG/src/jabber_groupchat.cpp
@@ -925,13 +925,9 @@ void CJabberProto::GroupchatProcessPresence(const TiXmlElement *node)
if (hContact != 0)
setWord(hContact, "Status", status);
- // Check <created/>
- if (bRoomCreated) {
- if (XmlGetChildByTag(node, "created", "xmlns", JABBER_FEAT_MUC_OWNER))
- // A new room just created by me
- // Request room config
- m_ThreadInfo->send(XmlNodeIq(AddIQ(&CJabberProto::OnIqResultGetMuc, JABBER_IQ_TYPE_GET, item->jid)) << XQUERY(JABBER_FEAT_MUC_OWNER));
- }
+ // A new room just created by me. Request room config
+ if (bRoomCreated)
+ m_ThreadInfo->send(XmlNodeIq(AddIQ(&CJabberProto::OnIqResultGetMuc, JABBER_IQ_TYPE_GET, item->jid)) << XQUERY(JABBER_FEAT_MUC_OWNER));
}
// leaving room