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:
mathieui 2021-04-16 19:47:35 +02:00
parent cbc4041746
commit c788c9afb8

View file

@ -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 = []