diff options
author | James Booth <boothj5@gmail.com> | 2014-09-06 22:40:57 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-06 22:40:57 +0100 |
commit | 2599c43d66915854d6f8658d95ce79eeb1123c35 (patch) | |
tree | 4ae99b2e4feb635259b18125b2769dbdec989612 /src/xmpp/iq.c | |
parent | 157a1b5ff75d706d5dda11c4208b05daa1552791 (diff) | |
download | profani-tty-2599c43d66915854d6f8658d95ce79eeb1123c35.tar.gz |
Rewrite form parser
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r-- | src/xmpp/iq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index cff0da1b..2431f151 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -770,7 +770,8 @@ _disco_info_result_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanz DataForm *form = form_create(softwareinfo); FormField *formField = NULL; - if (g_strcmp0(form->form_type, STANZA_DATAFORM_SOFTWARE) == 0) { + char *form_type = form_get_field_by_var(form, "FORM_TYPE"); + if (g_strcmp0(form_type, STANZA_DATAFORM_SOFTWARE) == 0) { GSList *field = form->fields; while (field != NULL) { formField = field->data; |