From e9d55d4bbde8dbb29774a94cad7cb3f077de0383 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Mon, 26 Apr 2010 19:50:08 -0400 Subject: [PATCH] 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 (cherry picked from commit 40941e044acf5a79cc9d95f5bf49b742243fc410) --- plugins/RSS/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index ae0efb0cd..6163965fb 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -337,7 +337,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): """[] [ ...]