summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0030
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-10-18 12:27:29 -0700
committerLance Stout <lancestout@gmail.com>2013-01-26 14:31:08 -0800
commit97a2f4449dd2d2cc2dc941cf5ad7e12cd088e021 (patch)
treef5a906c556200625f0af4b7a77915387a63b5c39 /sleekxmpp/plugins/xep_0030
parent7f42d15175b5ddb6c74ffc11e2104ab7bc5adcf5 (diff)
downloadslixmpp-97a2f4449dd2d2cc2dc941cf5ad7e12cd088e021.tar.gz
slixmpp-97a2f4449dd2d2cc2dc941cf5ad7e12cd088e021.tar.bz2
slixmpp-97a2f4449dd2d2cc2dc941cf5ad7e12cd088e021.tar.xz
slixmpp-97a2f4449dd2d2cc2dc941cf5ad7e12cd088e021.zip
Handle lang='*' in disco info
Diffstat (limited to 'sleekxmpp/plugins/xep_0030')
-rw-r--r--sleekxmpp/plugins/xep_0030/stanza/info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0030/stanza/info.py b/sleekxmpp/plugins/xep_0030/stanza/info.py
index 25d1d07f..2dec5d88 100644
--- a/sleekxmpp/plugins/xep_0030/stanza/info.py
+++ b/sleekxmpp/plugins/xep_0030/stanza/info.py
@@ -165,7 +165,7 @@ class DiscoInfo(ElementBase):
identities = []
for id_xml in self.findall('{%s}identity' % self.namespace):
xml_lang = id_xml.attrib.get('{%s}lang' % self.xml_ns, None)
- if lang is None or xml_lang == lang:
+ if lang is None or lang == '*' or xml_lang == lang:
id = (id_xml.attrib['category'],
id_xml.attrib['type'],
id_xml.attrib.get('{%s}lang' % self.xml_ns, None),