From 0ed4c618dc698918bbdba4486babf663544a0e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Fri, 1 Nov 2024 03:15:14 +0800 Subject: [PATCH] default mode to disable --- utils/system.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/utils/system.go b/utils/system.go index ec52be4..a76cc75 100644 --- a/utils/system.go +++ b/utils/system.go @@ -85,9 +85,12 @@ func SystemControl( tgMesg *tgbotapi.Message ) ( string, bool ) { //// Begin processing settings // ignore chats if enabled - if Settings.IgnoredChats[ chatId ] { - processed = true - } + if ignore, ok := Settings.IgnoredChats[ chatId ]; ok { + processed = processed || ignore; + } else { + // default ignore + processed = true; + } return mesg, processed }