default mode to disable
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user