[ADD/WIP] Basic moderation

You now can ban people, yoohoo!
This commit is contained in:
LDA 2024-06-28 13:11:33 +02:00
commit 46489b50e6
5 changed files with 140 additions and 6 deletions

View file

@ -26,6 +26,9 @@ extern void ASPing(const ParseeConfig *);
* as. */
extern void ASJoin(const ParseeConfig *, char *, char *);
/* Bans from a room a specific user */
extern void ASBan(const ParseeConfig *, char *, char *);
/* Finds an event from a room ID and event ID */
extern HashMap * ASFind(const ParseeConfig *, char *, char *);

View file

@ -34,6 +34,10 @@ typedef struct ParseeConfig {
/* ------- DB -------- */
char *db_path;
/* ------- ADMIN ------- */
char *jabber_admin;
char *matrix_admin;
} ParseeConfig;
typedef struct ParseeData {