summary refs log tree commit diff
path: root/src/system.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2024-07-15 10:28:55 -0600
committerAshelyn Rose <git@ashen.earth>2024-07-15 10:28:55 -0600
commit67b1837ebd88cf3bff25aef2d536e7cb316eff98 (patch)
tree0ef228256fa444db221cc964098d33ba5533bf7f /src/system.rs
parent51c9eabf4f58cddd6dee573ef3551f2a93584f33 (diff)
better regex construction
Diffstat (limited to 'src/system.rs')
-rw-r--r--src/system.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/system.rs b/src/system.rs
index 6aebf39..fa44946 100644
--- a/src/system.rs
+++ b/src/system.rs
@@ -74,8 +74,6 @@ impl System {
                                 println!("Autoproxy timeout has expired: {} (last sent), {} (timeout scheduled)", current_last_message.as_secs(), last_message.as_secs());
                                 self.latch_state = None;
                                 self.update_status_of_system();
-                            } else {
-                                println!("Autoproxy timeout called but not expired: {} (last sent), {} (timeout scheduled)", current_last_message.as_secs(), last_message.as_secs());
                             }
                         }
                     },
@@ -278,12 +276,6 @@ impl crate::config::Member {
         match self.message_pattern.captures(message.content.as_str()) {
             None => None,
             Some(captures) => {
-                let full_match = captures.get(0).unwrap();
-
-                if full_match.len() != message.content.len() {
-                    return None
-                }
-
                 match captures.name("content") {
                     None => None,
                     Some(matched_content) => Some(matched_content.as_str()),