mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
fix bug in RSS.announce.list:
Because the 'channel' argument was declared optional, calling announce.list off-channel without a channel argument caused an error. Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
6135a88741
commit
40941e044a
@ -337,7 +337,7 @@ class RSS(callbacks.Plugin):
|
|||||||
announce = conf.supybot.plugins.RSS.announce
|
announce = conf.supybot.plugins.RSS.announce
|
||||||
feeds = format('%L', list(announce.get(channel)()))
|
feeds = format('%L', list(announce.get(channel)()))
|
||||||
irc.reply(feeds or 'I am currently not announcing any feeds.')
|
irc.reply(feeds or 'I am currently not announcing any feeds.')
|
||||||
list = wrap(list, [optional('channel')])
|
list = wrap(list, ['channel',])
|
||||||
|
|
||||||
def add(self, irc, msg, args, channel, feeds):
|
def add(self, irc, msg, args, channel, feeds):
|
||||||
"""[<channel>] <name|url> [<name|url> ...]
|
"""[<channel>] <name|url> [<name|url> ...]
|
||||||
|
Loading…
Reference in New Issue
Block a user