Commit 6cb37a41 authored by Philipp Hörist's avatar Philipp Hörist

ServerInfo: Match the correct FORM_TYPE

parent 545d25ca
Pipeline #4638 passed with stages
in 2 minutes and 55 seconds
......@@ -176,8 +176,8 @@ class ServerInfo(Gtk.ApplicationWindow, EventHelper):
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment