mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:35:10 +00:00
[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:
parent
55ac682d26
commit
064040c18f
17 changed files with 449 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue