fix: regression on /set

This commit is contained in:
mathieui 2021-04-16 21:48:00 +02:00
parent ae9d8ae291
commit 35519e6478

View file

@ -798,7 +798,8 @@ class CommandCore:
info = ('%s=%s' % (option, value), 'Info')
else:
possible_section = args[0]
if not config.has_option(possible_section) and config.has_section(possible_section):
if (not config.has_option(section='Poezio', option=possible_section)
and config.has_section(possible_section)):
section = possible_section
option = args[1]
value = config.get(option, section=section)