about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-05 13:30:30 +0100
committerJames Booth <boothj5@gmail.com>2014-09-05 13:30:30 +0100
commitc133b8931389bbfdfc3ac4b37ad4aad052ad9f9a (patch)
tree7d9f19ea657824ec94ffbd39a9d615c9f23c6ecd /src
parent5e1023dfd98c0d978958d1763ced483fa2e53ce2 (diff)
downloadprofani-tty-c133b8931389bbfdfc3ac4b37ad4aad052ad9f9a.tar.gz
Debug room vars
Diffstat (limited to 'src')
-rw-r--r--src/server_events.c11
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