mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:55:10 +00:00
[ADD/MOD] Help/stats and two-way modification
More on the Reverse Ideology!
This commit is contained in:
parent
4bcf1db4ec
commit
8472ada953
13 changed files with 203 additions and 14 deletions
|
|
@ -8,7 +8,7 @@
|
|||
#include <XML.h>
|
||||
|
||||
void
|
||||
XMPPSendPlain(XMPPComponent *comp, char *fr, char *to, char *msg, char *type, char *rst, char *rse, char *event_id, char *oob)
|
||||
XMPPSendPlain(XMPPComponent *comp, char *fr, char *to, char *msg, char *type, char *rst, char *rse, char *event_id, char *oob, char *edit)
|
||||
{
|
||||
XMLElement *message, *body, *data, *parsee;
|
||||
char *from;
|
||||
|
|
@ -65,6 +65,14 @@ XMPPSendPlain(XMPPComponent *comp, char *fr, char *to, char *msg, char *type, ch
|
|||
/* TODO: Add custom fields depending on the caller's wishes */
|
||||
}
|
||||
|
||||
if (edit)
|
||||
{
|
||||
XMLElement *xedit = XMLCreateTag("replace");
|
||||
XMLAddAttr(xedit, "xmlns", "urn:xmpp:message-correct:0");
|
||||
XMLAddAttr(xedit, "id", edit);
|
||||
XMLAddChild(message, xedit);
|
||||
}
|
||||
|
||||
if (oob)
|
||||
{
|
||||
XMLElement *xoob, *oob_data, *oob_url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue