mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:15:11 +00:00
[MOD] Verbosity levels, avatar cleanser
I have a weird bug where Parsee seems to hang on a Db request, been tryign to figure that otu since a while but can't quite put my finger on where. You can have this commit, as a treat.
This commit is contained in:
parent
3a60b773c9
commit
692cb8aa6f
19 changed files with 190 additions and 111 deletions
|
|
@ -17,6 +17,11 @@
|
|||
#include <Command.h>
|
||||
#include <XMPP.h>
|
||||
|
||||
#define PARSEE_VERBOSE_NONE 0
|
||||
#define PARSEE_VERBOSE_LOG 1
|
||||
#define PARSEE_VERBOSE_STANZA 2
|
||||
#define PARSEE_VERBOSE_COMICAL 53 /* MINUTES */
|
||||
|
||||
typedef struct ParseeConfig {
|
||||
/* -------- MATRIX -------- */
|
||||
char *as_token, *hs_token;
|
||||
|
|
@ -56,6 +61,8 @@ typedef struct ParseeData {
|
|||
|
||||
Db *db;
|
||||
char *id;
|
||||
|
||||
int verbosity;
|
||||
} ParseeData;
|
||||
|
||||
typedef struct Argument {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ typedef struct ParseeCmdArg {
|
|||
/* A list of all routes. */
|
||||
#define ROUTES X_ROUTE("/", RouteRoot) \
|
||||
X_ROUTE("/_matrix/app/v1/transactions/(.*)", RouteTxns) \
|
||||
X_ROUTE("/_matrix/app/v1/ping", RoutePing) \
|
||||
X_ROUTE("/_matrix/app/v1/users/(.*)", RouteUserAck) \
|
||||
X_ROUTE("/_matrix/app/v1/rooms/(.*)", RouteRoomAck) \
|
||||
X_ROUTE("/_matrix/client/v1/media/download/(.*)/(.*)", RouteMedia)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue