From 97a2f4449dd2d2cc2dc941cf5ad7e12cd088e021 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 18 Oct 2012 12:27:29 -0700 Subject: Handle lang='*' in disco info --- sleekxmpp/plugins/xep_0030/stanza/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp') 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), -- cgit v1.2.3