aboutsummaryrefslogtreecommitdiff
path: root/mcin/mcin.h
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-06-09 16:17:24 -0700
committerTrumeet <yuuta@yuuta.moe>2021-06-09 16:17:24 -0700
commit0e0ef8b1cff7d25c1331f08389da8c5e3a96593d (patch)
treee32d0dcfe7a0b8e449ff1750b88c8988de3fd02b /mcin/mcin.h
parentc0dbf471b41002c93ff85887ee56020145f29106 (diff)
downloadminebridge-0e0ef8b1cff7d25c1331f08389da8c5e3a96593d.tar
minebridge-0e0ef8b1cff7d25c1331f08389da8c5e3a96593d.tar.gz
minebridge-0e0ef8b1cff7d25c1331f08389da8c5e3a96593d.tar.bz2
minebridge-0e0ef8b1cff7d25c1331f08389da8c5e3a96593d.zip
feat: catch overload messages
Diffstat (limited to 'mcin/mcin.h')
-rw-r--r--mcin/mcin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcin/mcin.h b/mcin/mcin.h
index 5b6f78c..6aa8335 100644
--- a/mcin/mcin.h
+++ b/mcin/mcin.h
@@ -4,10 +4,12 @@
#include <regex.h>
#define MCIN_REGEX_COUNT 51
+#define MCIN_REGEX_COUNT_WARN 1
typedef struct mcin_matcher {
regex_t regex_master;
regex_t regex[MCIN_REGEX_COUNT];
+ regex_t regex_warn[MCIN_REGEX_COUNT_WARN];
} MCINMatcher;
int mcin_matcher_init(MCINMatcher *out);