mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:05:11 +00:00
[ADD] Filtering XMPP commands
This allows us to have commands apply to admins or MUCs only(which would help with many things I want to implement).
This commit is contained in:
parent
7c60ab28cb
commit
9a16d96323
9 changed files with 127 additions and 31 deletions
|
|
@ -409,7 +409,7 @@ IQGet(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
XMLElement *q = XMLCreateTag("query");
|
||||
XMLAddAttr(q, "xmlns", "http://jabber.org/protocol/disco#items");
|
||||
XMLAddAttr(q, "node", "http://jabber.org/protocol/commands");
|
||||
XMPPShoveCommandList(thr->info->m, to, q);
|
||||
XMPPShoveCommandList(thr->info->m, to, q, stanza);
|
||||
XMLAddChild(iq_reply, q);
|
||||
}
|
||||
XMPPSendStanza(jabber, iq_reply, args->config->max_stanza_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue