mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 23:05:10 +00:00
[MOD] Multiple-option choices for lists.
You can now mass-remove admins!
This commit is contained in:
parent
0cb19a15d8
commit
308dfd500d
3 changed files with 59 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue