[MOD] Multiple-option choices for lists.

You can now mass-remove admins!
This commit is contained in:
LDA 2024-07-15 12:33:39 +02:00
commit 308dfd500d
3 changed files with 59 additions and 16 deletions

View file

@ -160,7 +160,12 @@ XMPPOptionToXML(XMPPOption *opt)
case XMPP_OPTION_BOOL: XMLAddAttr(elem, "type", "boolean"); break;
/* TODO */
case XMPP_OPTION_LIST: XMLAddAttr(elem, "type", "list-single"); break;
case XMPP_OPTION_LIST:
XMLAddAttr(elem,
"type",
opt->data.as_arr.single ? "list-single" : "list-multi"
);
break;
case XMPP_OPTION_FIXED: XMLAddAttr(elem, "type", "fixed"); break;
}
XMLAddAttr(elem, "var", opt->id);