mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 17:05:11 +00:00
[FIX/CI] Listen to CI
This commit is contained in:
parent
147e430a47
commit
27223a5896
1 changed files with 13 additions and 3 deletions
|
|
@ -168,10 +168,10 @@ XMPPRequestVoice(XMPPComponent *jabber, char *from, char *muc)
|
||||||
Free(identifier);
|
Free(identifier);
|
||||||
}
|
}
|
||||||
bool
|
bool
|
||||||
XMPPJoinMUC(XMPPComponent *comp, char *fr, char *muc, char *hash, bool ret)
|
XMPPJoinMUC(XMPPComponent *comp, char *fr, char *muc, char *hash, int time, bool ret)
|
||||||
{
|
{
|
||||||
XMLElement *presence, *x, *reply, *history, *photo;
|
XMLElement *presence, *x, *reply, *history, *photo;
|
||||||
char *from, *id;
|
char *from, *id, *stime = "3600";
|
||||||
if (!comp || !fr || !muc)
|
if (!comp || !fr || !muc)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -186,7 +186,17 @@ XMPPJoinMUC(XMPPComponent *comp, char *fr, char *muc, char *hash, bool ret)
|
||||||
XMLAddAttr(presence, "id", (id = StrRandom(8)));
|
XMLAddAttr(presence, "id", (id = StrRandom(8)));
|
||||||
XMLAddAttr(x, "xmlns", "http://jabber.org/protocol/muc");
|
XMLAddAttr(x, "xmlns", "http://jabber.org/protocol/muc");
|
||||||
history = XMLCreateTag("history");
|
history = XMLCreateTag("history");
|
||||||
XMLAddAttr(history, "seconds", "3600"); /* TODO: Custom timeout */
|
|
||||||
|
if (time > 0)
|
||||||
|
{
|
||||||
|
stime = StrInt(time);
|
||||||
|
}
|
||||||
|
XMLAddAttr(history, "seconds", stime);
|
||||||
|
if (time > 0)
|
||||||
|
{
|
||||||
|
Free(stime);
|
||||||
|
stime = NULL;
|
||||||
|
}
|
||||||
XMLAddChild(x, history);
|
XMLAddChild(x, history);
|
||||||
|
|
||||||
XMLAddChild(presence, x);
|
XMLAddChild(presence, x);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue