[MOD/ADD] Use glob-like system for admins.

This commit is contained in:
LDA 2024-07-06 02:16:52 +02:00
commit 95aaa0dbc9
10 changed files with 154 additions and 13 deletions

10
src/include/Glob.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef PARSEE_GLOB_H
#define PARSEE_GLOB_H
#include <stdbool.h>
/* Verifies if a string matches a rule, as specified in
* https://spec.matrix.org/v1.11/appendices/#glob-style-matching. */
extern bool GlobMatches(char *rule, char *string);
#endif