mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:55:10 +00:00
[MOD] Die on loopback stanza
Dirty hack to a memory problem.
This commit is contained in:
parent
b408cbf224
commit
14ebef53ce
7 changed files with 77 additions and 16 deletions
16
src/Events.c
16
src/Events.c
|
|
@ -15,3 +15,19 @@ MatrixCreateNotice(char *body)
|
|||
|
||||
return map;
|
||||
}
|
||||
|
||||
HashMap *
|
||||
MatrixCreateMessage(char *body)
|
||||
{
|
||||
HashMap *map;
|
||||
if (!body)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
map = HashMapCreate();
|
||||
HashMapSet(map, "msgtype", JsonValueString("m.text"));
|
||||
HashMapSet(map, "body", JsonValueString(body));
|
||||
|
||||
return map;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue