From c9655c67855e18e72fac3a90259de972cc5c2ded Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 7 Feb 2004 22:38:49 +0000 Subject: [PATCH] Added announce command. --- plugins/RSS.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/RSS.py b/plugins/RSS.py index 429b6e3c0..79d9e74a1 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -195,6 +195,18 @@ class RSS(callbacks.Privmsg): return delattr(self.__class__, name) irc.replySuccess() + + def announce(self, irc, msg, args): + """[] [ ...] + + Sets the current list of announced feeds in the channel to the feeds + given. Valid feeds include the names of registered feeds as well as + URLs for a RSS feeds. is only necessary if the message isn't + sent in the channel itself. + """ + channel = privmsgs.getChannel(msg, args) + conf.supybot.plugins.RSS.announce.get(channel).setValue(args) + irc.replySuccess() def rss(self, irc, msg, args): """