From d794e1532ff37e3879ec3bcd6f51c1a6f98c4456 Mon Sep 17 00:00:00 2001 From: Zihaoxu2008 Date: Sun, 26 Jan 2025 11:48:52 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=9C=A8=E5=82=BB=E9=80=BC=E5=9C=B0?= =?UTF-8?q?=E7=90=83=E6=9D=91=E8=BF=99=E4=B8=AA=E5=AE=8C=E5=85=A8=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=BF=BD=E7=95=A5"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 492f62d6b3aeb18f6ca231e5017a8658d4ec3888. --- src/main.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index a283195..4a3f160 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,14 +44,10 @@ 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 { error!("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()); }