Skip to content
Snippets Groups Projects
Commit 6cb37a41 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

ServerInfo: Match the correct FORM_TYPE

parent 545d25ca
No related branches found
No related tags found
No related merge requests found
......@@ -176,8 +176,8 @@ def _add_contact_addresses(self, dataforms):
def _get_addresses(fields, dataforms):
addresses = {}
for form in dataforms:
type_ = form.vars.get('FORM_TYPE')
if type_ == 'http://jabber.org/network/serverinfo':
field = form.vars.get('FORM_TYPE')
if field.value != 'http://jabber.org/network/serverinfo':
continue
for address_type in fields:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment