From 6e61adf3dba6945423bb4b8812c8ed0107274f50 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 22 Aug 2015 18:48:29 +0200 Subject: Fix the order in which and tags are sent on disco#info The identities should all be at the start, and features at the end, so we just prepend the identity on add_identity, and append features on add_feature --- slixmpp/plugins/xep_0030/stanza/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0030/stanza/info.py b/slixmpp/plugins/xep_0030/stanza/info.py index e749cc2e..39ee83d5 100644 --- a/slixmpp/plugins/xep_0030/stanza/info.py +++ b/slixmpp/plugins/xep_0030/stanza/info.py @@ -120,7 +120,7 @@ class DiscoInfo(ElementBase): id_xml.attrib['{%s}lang' % self.xml_ns] = lang if name: id_xml.attrib['name'] = name - self.xml.append(id_xml) + self.xml.insert(0, id_xml) return True return False -- cgit v1.2.3