[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:
LDA 2024-10-27 19:08:37 +01:00
commit 9a16d96323
9 changed files with 127 additions and 31 deletions

View file

@ -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);