mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +01:00
RSS: Fix announce removal to work with net+chan-specific config
It only removed the value from the chan-specific value.
This commit is contained in:
parent
df6ebc78a0
commit
4bd5d8eb33
@ -527,10 +527,17 @@ class RSS(callbacks.Plugin):
|
|||||||
message isn't sent in the channel itself.
|
message isn't sent in the channel itself.
|
||||||
"""
|
"""
|
||||||
announce = conf.supybot.plugins.RSS.announce
|
announce = conf.supybot.plugins.RSS.announce
|
||||||
S = announce.get(channel)()
|
|
||||||
for feed in feeds:
|
def remove_from_var(var):
|
||||||
S.discard(feed)
|
S = var()
|
||||||
announce.get(channel).setValue(S)
|
for feed in feeds:
|
||||||
|
S.discard(feed)
|
||||||
|
var.setValue(S)
|
||||||
|
|
||||||
|
remove_from_var(announce.get(channel))
|
||||||
|
remove_from_var(announce.getSpecific(
|
||||||
|
channel=channel, network=irc.network))
|
||||||
|
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
remove = wrap(remove, [('checkChannelCapability', 'op'),
|
remove = wrap(remove, [('checkChannelCapability', 'op'),
|
||||||
many(first('url', 'feedName'))])
|
many(first('url', 'feedName'))])
|
||||||
|
Loading…
Reference in New Issue
Block a user