html terminal
Diffstat (limited to 'src/webhook.rs')
-rw-r--r--src/webhook.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/webhook.rs b/src/webhook.rs
index 37d5f33..1606d6f 100644
--- a/src/webhook.rs
+++ b/src/webhook.rs
@@ -122,7 +122,7 @@ fn get(line: &str) -> Option<Message> {
)+ false
};
}
- if s!(line, [' ', '\t'], "at", "Lost command socket connection") {
+ if s!(line, [' ', '\t'], "at", "Lost command socket connection", "Kicking connection") {
return None;
}
@@ -151,13 +151,6 @@ fn get(line: &str) -> Option<Message> {
Message::Join { player }
});
}
- static KICKAGE: LazyLock<Regex> = LazyLock::new(|| {
- Regex::new(r"Kicking connection [0-9]{3}.[0-9]{3}.[0-9]{3}.[0-9]{3} \/ [^;]+; Reason: (.+)")
- .unwrap()
- });
- if KICKAGE.is_match(line) {
- return None;
- }
static MAP_LOAD: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"Loading map (.+)").unwrap());
if let Some(captures) = MAP_LOAD.captures(line) {