fix: when detecting /set option = value, do the right thing
Previously: this creates a section with the option name, with an option named "=" and the value specified. Then you are stuck because "/set option value" will not work due to the command detecting the section name and only printing the value of [option] value=. Fixes #3517, probably
This commit is contained in:
parent
cbc4041746
commit
c788c9afb8
1 changed files with 2 additions and 0 deletions
|
@ -750,6 +750,8 @@ class CommandCore:
|
|||
"""
|
||||
/set [module|][section] <option> [value]
|
||||
"""
|
||||
if len(args) == 3 and args[1] == '=':
|
||||
args = [args[0], args[2]]
|
||||
if args is None or len(args) == 0:
|
||||
config_dict = config.to_dict()
|
||||
lines = []
|
||||
|
|
Loading…
Reference in a new issue