1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Debug room vars

This commit is contained in:
James Booth 2014-09-05 13:30:30 +01:00
parent 5e1023dfd9
commit c133b89313

View File

@ -472,6 +472,17 @@ handle_room_configure(const char * const room, DataForm *form)
} else {
cons_show("No form type specified");
}
GSList *fields = form->fields;
GSList *curr = fields;
while (curr != NULL) {
FormField *field = curr->data;
if (field->var != NULL) {
cons_show(" Field: %s", field->var);
}
curr = g_slist_next(curr);
}
}
void