From e5c710c3b6d4f5494bdb15090bc5a4b645124d63 Mon Sep 17 00:00:00 2001 From: outlet360 Date: Thu, 5 Nov 2026 10:02:35 -0500 Subject: [PATCH] update fork to be up-to-date with matrixmc i couldve just applied a patch --- main.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index f802b2d..869310c 100644 --- a/main.go +++ b/main.go @@ -72,21 +72,20 @@ type MatrixConfig struct { var ( chatRE = regexp.MustCompile( - `^\[[0-9:]+\] \[[^]]+/INFO\]: (?:\[Not Secure\] )?<([^>]+)> (.*)$`, + `^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?(?:\[Not Secure\] )?<([^>]+)> (.*)$`, ) joinRE = regexp.MustCompile( - `^\[[0-9:]+\] \[[^]]+/INFO\]: ([A-Za-z0-9_]+) joined the game$`, + `^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?([A-Za-z0-9_]+) joined the game$`, ) leaveRE = regexp.MustCompile( - `^\[[0-9:]+\] \[[^]]+/INFO\]: ([A-Za-z0-9_]+) left the game$`, + `^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?([A-Za-z0-9_]+) left the game$`, ) advancementRE = regexp.MustCompile( - `^\[[0-9:]+\] \[[^]]+/INFO\]: ([A-Za-z0-9_]+) has (?:made the advancement|reached the goal|completed the challenge) \[(.+)\]$`, - ) - + `^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?([A-Za-z0-9_]+) has (?:made the advancement|reached the goal|completed the challenge) \[(.+)\]$`, + ) deathRE = regexp.MustCompile( `^\[[0-9:]+\] \[[^]]+/INFO\]: (.+)$`, )