Merge branch 'master' of https://git.kappach.at/lda/Parsee into janet

This commit is contained in:
LDA 2024-11-16 14:36:09 +01:00
commit 6d7d85662b
2 changed files with 7 additions and 4 deletions

View file

@ -13,10 +13,10 @@ commit done between releases.
*There is currently no beta releases of Parsee* *There is currently no beta releases of Parsee*
## Alpha ## Alpha
### v0.2.0[star-of-hope] <8/11/2024?> ### v0.2.0[star-of-hope] <8/11/2024>
Fixes some media metadata things, replaces the build system, Fixes some media metadata things, replaces the build system,
tries out avatar support some more and speeds up Parsee a tad tries out avatar support some more, MUC contexts, and speeds
bit. up Parsee just a bit. MbedTLS support is still highly unstable.
#### New things #### New things
- Start dealing with some basic PEP and vCard-based avatar - Start dealing with some basic PEP and vCard-based avatar
support from both sides. support from both sides.
@ -50,6 +50,8 @@ size on the fly, or having extensions being able to postprocess
the stanza). the stanza).
- Parsee now stops when a stream error is received, instead of - Parsee now stops when a stream error is received, instead of
being in a limbo state. being in a limbo state.
- The format for links has been changed to be slighlty *less*
annoying.
#### Deprecated features #### Deprecated features
- The old `build.c` and `Makefile`s used for building are removed, - The old `build.c` and `Makefile`s used for building are removed,

View file

@ -54,11 +54,12 @@ ParseeInitData(XMPPComponent *comp)
char *id = StrRandom(64); char *id = StrRandom(64);
ref = DbCreate(data->db, 1, "info"); ref = DbCreate(data->db, 1, "info");
HashMapSet(DbJson(ref), "identifier", JsonValueString(id)); HashMapSet(DbJson(ref), "identifier", JsonValueString(id));
HashMapSet(DbJson(ref), "version", JsonValueString(VERSION));
Free(id); Free(id);
} }
version = GrabString(DbJson(ref), 1, "version"); version = GrabString(DbJson(ref), 1, "version");
if (!ParseeIsCompatible(VERSION, version)) if (version && !ParseeIsCompatible(VERSION, version))
{ {
Log(LOG_WARNING, "Version mismatch(curr=%s db=%s).", VERSION, version); Log(LOG_WARNING, "Version mismatch(curr=%s db=%s).", VERSION, version);
Log(LOG_WARNING, "Yeah. You may want to _not_ do that."); Log(LOG_WARNING, "Yeah. You may want to _not_ do that.");