summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-16 21:48:00 +0200
committermathieui <mathieui@mathieui.net>2021-04-16 21:48:00 +0200
commit35519e6478eb42965fc9a856b3775dabda5dc730 (patch)
treed9d860eadd1c577dd67c8acdd48a6cb5abdf0286 /poezio
parentae9d8ae291a50e5264ef0948a18c9b5bb8a67695 (diff)
downloadpoezio-35519e6478eb42965fc9a856b3775dabda5dc730.tar.gz
poezio-35519e6478eb42965fc9a856b3775dabda5dc730.tar.bz2
poezio-35519e6478eb42965fc9a856b3775dabda5dc730.tar.xz
poezio-35519e6478eb42965fc9a856b3775dabda5dc730.zip
fix: regression on /set
Diffstat (limited to 'poezio')
-rw-r--r--poezio/core/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 9b3d3b1b..48042a29 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -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)