delete rss-hooks setting when it's empty
This commit is contained in:
parent
08c723f9d0
commit
4d096aa79d
1 changed files with 4 additions and 1 deletions
|
@ -129,5 +129,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
raise utils.EventError("Unknown subcommand '%s'" % subcommand)
|
raise utils.EventError("Unknown subcommand '%s'" % subcommand)
|
||||||
|
|
||||||
if changed:
|
if changed:
|
||||||
|
if rss_hooks:
|
||||||
event["target"].set_setting("rss-hooks", rss_hooks)
|
event["target"].set_setting("rss-hooks", rss_hooks)
|
||||||
|
else:
|
||||||
|
event["target"].del_setting("rss-hooks")
|
||||||
event["stdout"].write(message)
|
event["stdout"].write(message)
|
||||||
|
|
Loading…
Reference in a new issue