From 9297ffbadc3c126b01f2cc34956026a907b5db89 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 24 Sep 2019 14:48:01 +0100 Subject: [PATCH] .lstrip("-") from unset setting name --- modules/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config.py b/modules/config.py index ce325724..50b0c904 100644 --- a/modules/config.py +++ b/modules/config.py @@ -219,7 +219,7 @@ class Module(ModuleManager.BaseModule): result.data)) elif result.result == ConfigResults.Removed: event["stdout"].write("Unset setting '%s'%s" % - (setting, for_str)) + (setting.lstrip("-"), for_str)) else: event["stdout"].write("Available config: %s" % ", ".join(export_settings.keys()))