add 'nothreads' option, fixes #4

This commit is contained in:
Aine
2022-08-26 16:00:37 +03:00
parent 41a52c1eca
commit 42c9e15619
4 changed files with 14 additions and 1 deletions

View File

@@ -64,6 +64,10 @@ func (s settings) NoHTML() bool {
return utils.Bool(s.Get(optionNoHTML))
}
func (s settings) NoThreads() bool {
return utils.Bool(s.Get(optionNoThreads))
}
// Set option
func (s settings) Set(key, value string) {
s[strings.ToLower(strings.TrimSpace(key))] = value