From 492f62d6b3aeb18f6ca231e5017a8658d4ec3888 Mon Sep 17 00:00:00 2001 From: lim114514 <1941068@qq.com> Date: Sun, 26 Jan 2025 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=82=BB=E9=80=BC=E5=9C=B0=E7=90=83?= =?UTF-8?q?=E6=9D=91=E8=BF=99=E4=B8=AA=E5=AE=8C=E5=85=A8=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=BF=BD=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index b4bdb1e..57d197e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,10 +36,14 @@ async fn main() { let configuration = Configuration::new("config.json"); let configuration_rc = Arc::new(configuration); let mut spam_file = None; + /* + 在傻逼地球村中这个可以忽略了 if configuration_rc.username_prefix().len() > 14 { eprintln!("[CONFIG] Error: Username prefix should not longer than 14"); return; } + + */ if !configuration_rc.clone().spam_file().is_empty() { spam_file = Some(tokio::fs::File::open(configuration_rc.clone().spam_file()).await.unwrap()); }