[ADD/WIP] No-fly list for Matrix users

Imagine being in Parsee jail.
This commit is contained in:
LDA 2024-06-28 20:27:35 +02:00
commit f434f7aa87
4 changed files with 120 additions and 20 deletions

View file

@ -184,4 +184,12 @@ extern void ParseeInitialiseJIDTable(void);
extern void ParseePushJIDTable(char *muc, char *bare);
extern char *ParseeLookupJID(char *muc);
extern void ParseeDestroyJIDTable(void);
/* Globally bans a Matrix user from ever interacting with Parsee, and bans
* them from bridged rooms where the bot has administrator. */
extern void ParseeGlobalBan(ParseeData *, char *user);
/* Verifies if a user was globally banned. If so, then apply actions to the
* room ID */
extern bool ParseeManageBan(ParseeData *, char *user, char *room);
#endif