From 40941e044acf5a79cc9d95f5bf49b742243fc410 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 --- 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 9f5a4d591..cb4618db3 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): """[] [ ...]