default mode to disable

This commit is contained in:
斟酌 鵬兄 2024-11-01 03:15:14 +08:00
parent c22cdac1cb
commit 0ed4c618dc

View File

@ -85,9 +85,12 @@ func SystemControl( tgMesg *tgbotapi.Message ) ( string, bool ) {
//// Begin processing settings //// Begin processing settings
// ignore chats if enabled // ignore chats if enabled
if Settings.IgnoredChats[ chatId ] { if ignore, ok := Settings.IgnoredChats[ chatId ]; ok {
processed = true processed = processed || ignore;
} } else {
// default ignore
processed = true;
}
return mesg, processed return mesg, processed
} }