about summary refs log tree commit diff stats
path: root/src/xmpp/iq.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-06 22:40:57 +0100
committerJames Booth <boothj5@gmail.com>2014-09-06 22:40:57 +0100
commit2599c43d66915854d6f8658d95ce79eeb1123c35 (patch)
tree4ae99b2e4feb635259b18125b2769dbdec989612 /src/xmpp/iq.c
parent157a1b5ff75d706d5dda11c4208b05daa1552791 (diff)
downloadprofani-tty-2599c43d66915854d6f8658d95ce79eeb1123c35.tar.gz
Rewrite form parser
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r--src/xmpp/iq.c3
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;