mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fix option handling for room config form parsing
This commit is contained in:
parent
a4f6e9391c
commit
055ba3c4b2
@ -167,8 +167,9 @@ form_create(xmpp_stanza_t * const form_stanza)
|
|||||||
|
|
||||||
// handle repeated field children
|
// handle repeated field children
|
||||||
xmpp_stanza_t *field_child = xmpp_stanza_get_children(field_stanza);
|
xmpp_stanza_t *field_child = xmpp_stanza_get_children(field_stanza);
|
||||||
child_name = xmpp_stanza_get_name(field_child);
|
|
||||||
while (field_child != NULL) {
|
while (field_child != NULL) {
|
||||||
|
child_name = xmpp_stanza_get_name(field_child);
|
||||||
|
|
||||||
// handle values
|
// handle values
|
||||||
if (g_strcmp0(child_name, "value") == 0) {
|
if (g_strcmp0(child_name, "value") == 0) {
|
||||||
char *value = xmpp_stanza_get_text(field_child);
|
char *value = xmpp_stanza_get_text(field_child);
|
||||||
|
Loading…
Reference in New Issue
Block a user