summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-08-22 18:48:29 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-08-22 18:48:29 +0200
commit6e61adf3dba6945423bb4b8812c8ed0107274f50 (patch)
tree9dd87380a625cbc8e98eff1abcdffc26024eacfd
parenta721084f6e9bc82568483176c7c8b8f182e96c15 (diff)
downloadslixmpp-6e61adf3dba6945423bb4b8812c8ed0107274f50.tar.gz
slixmpp-6e61adf3dba6945423bb4b8812c8ed0107274f50.tar.bz2
slixmpp-6e61adf3dba6945423bb4b8812c8ed0107274f50.tar.xz
slixmpp-6e61adf3dba6945423bb4b8812c8ed0107274f50.zip
Fix the order in which <identity/> and <feature/> 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
-rw-r--r--slixmpp/plugins/xep_0030/stanza/info.py2
1 files changed, 1 insertions, 1 deletions
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