Commit c788c9af authored by mathieui's avatar mathieui

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
parent cbc40417
......@@ -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 = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment