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
// 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
}