[ADD/WIP] Chat settings

Right now, they are currently unused. Extensions, and Parsee itself
will be able to use those, though.
This commit is contained in:
LDA 2024-10-29 14:44:55 +01:00
commit 064040c18f
17 changed files with 449 additions and 14 deletions

View file

@ -45,5 +45,18 @@ typedef enum XMPPCommandFlags {
XMPP_COMMAND(WhitelistCallback, XMPPCMD_ADMINS, "wl", "Get Parsee's chat whitelist", {}) \
XMPP_COMMAND(MUCInformationID, XMPPCMD_MUC, "muc-info-id", "Get bridged Matrix room ID", {}) \
XMPP_COMMAND(MUCInformationCID, XMPPCMD_MUC, "muc-info-cid", "Get MUC's internal ID", {}) \
XMPP_COMMAND(MUCUnlink, XMPPCMD_MUC, "muc-unlink", "Unlinks MUC", {}) \
XMPP_COMMAND(MUCSetKey, XMPPCMD_MUC, "muc-set-key", "Sets a key within the MUC/room's context", { \
XMPPOption *key = XMPPCreateText(true, "key", ""); \
XMPPOption *val = XMPPCreateText(true, "val", ""); \
XMPPSetDescription(key, "Key"); \
XMPPSetDescription(val, "Value"); \
XMPPAddOption(cmd, key); \
XMPPAddOption(cmd, val); \
\
XMPPSetFormTitle(cmd, "Set a key-value pair"); \
XMPPSetFormInstruction(cmd, "Replace a key with a specific value"); \
}) \
XMPP_COMMAND(MUCGetKeys, XMPPCMD_MUC, "muc-get-keys", "Get all key-values in the MUC/room.", {}) \
XMPPCOMMANDS