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