diff --git a/plugins/RSS.py b/plugins/RSS.py index 0eb73e3b4..1f7abb195 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -222,7 +222,7 @@ class RSS(callbacks.Privmsg): delattr(self.__class__, name) irc.replySuccess() - def announce(self, irc, msg, args): + def announce(self, irc, msg, args, channel): """[] [ ...] Sets the current list of announced feeds in the channel to the feeds @@ -230,12 +230,12 @@ class RSS(callbacks.Privmsg): 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) if not args: irc.replySuccess('All previous announced feeds removed.') else: irc.replySuccess() + announce = privmsgs.checkChannelCapability(announce, 'op') def rss(self, irc, msg, args): """