diff options
author | James Booth <boothj5@gmail.com> | 2014-09-05 13:30:30 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-05 13:30:30 +0100 |
commit | c133b8931389bbfdfc3ac4b37ad4aad052ad9f9a (patch) | |
tree | 7d9f19ea657824ec94ffbd39a9d615c9f23c6ecd /src | |
parent | 5e1023dfd98c0d978958d1763ced483fa2e53ce2 (diff) | |
download | profani-tty-c133b8931389bbfdfc3ac4b37ad4aad052ad9f9a.tar.gz |
Debug room vars
Diffstat (limited to 'src')
-rw-r--r-- | src/server_events.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server_events.c b/src/server_events.c index f5f3b360..1d9546fb 100644 --- a/src/server_events.c +++ b/src/server_events.c @@ -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 |