mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:25:11 +00:00
[ADD] Add XMPP commands for managing whitelists
This commit is contained in:
parent
a38e14e029
commit
09d38993bb
2 changed files with 152 additions and 0 deletions
|
|
@ -28,5 +28,15 @@
|
|||
XMPPSetFormTitle(cmd, "No-fly addition form"); \
|
||||
XMPPSetFormInstruction(cmd, "Select a glob pattern to add to the nofly"); \
|
||||
}) \
|
||||
XMPP_COMMAND(ClearWhitelistCallback, "clear-wl", "Removes the chat whitelist", {}) \
|
||||
XMPP_COMMAND(AddWhitelistCallback, "add-wl", "Adds server to chat whitelist", { \
|
||||
XMPPOption *serv = XMPPCreateText(true, "entity", ""); \
|
||||
XMPPSetDescription(serv, "Server to mark as admin"); \
|
||||
XMPPAddOption(cmd, serv); \
|
||||
\
|
||||
XMPPSetFormTitle(cmd, "Chatlist addition form"); \
|
||||
XMPPSetFormInstruction(cmd, "Add a server to whitelist"); \
|
||||
}) \
|
||||
XMPP_COMMAND(WhitelistCallback, "wl", "Get Parsee's chat whitelist", {}) \
|
||||
|
||||
XMPPCOMMANDS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue