From 4d096aa79dbaad794588a194b6c736bf4c7a3549 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 1 Jul 2019 21:16:04 +0100 Subject: [PATCH] delete rss-hooks setting when it's empty --- modules/rss.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/rss.py b/modules/rss.py index c1824056..93d62f60 100644 --- a/modules/rss.py +++ b/modules/rss.py @@ -129,5 +129,8 @@ class Module(ModuleManager.BaseModule): raise utils.EventError("Unknown subcommand '%s'" % subcommand) if changed: - event["target"].set_setting("rss-hooks", rss_hooks) + if rss_hooks: + event["target"].set_setting("rss-hooks", rss_hooks) + else: + event["target"].del_setting("rss-hooks") event["stdout"].write(message)