chat log model update

This commit is contained in:
Gordon 2022-01-20 17:29:38 +08:00
parent 911100923f
commit aa7b891150

View File

@ -121,6 +121,9 @@ func GetSwitchFromOptions(Options map[string]bool, key string) (result bool) {
} }
return false return false
} }
func SetSwitchFromOptions(Options map[string]bool, key string, value bool) { func SetSwitchFromOptions(options map[string]bool, key string, value bool) {
Options[key] = value if options == nil {
options = make(map[string]bool, 5)
}
options[key] = value
} }