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.
This commit is contained in:
Daniel Folkinshteyn 2010-04-26 19:50:08 -04:00
parent 053a9d590e
commit 2bb3ba9443

View File

@ -339,7 +339,7 @@ class RSS(callbacks.Plugin):
announce = conf.supybot.plugins.RSS.announce
feeds = format('%L', list(announce.get(channel)()))
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):
"""[<channel>] <name|url> [<name|url> ...]