mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Made RSS.announce require #channel,op.
This commit is contained in:
parent
4a706a1aae
commit
bd4451c3f6
@ -222,7 +222,7 @@ class RSS(callbacks.Privmsg):
|
|||||||
delattr(self.__class__, name)
|
delattr(self.__class__, name)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
|
||||||
def announce(self, irc, msg, args):
|
def announce(self, irc, msg, args, channel):
|
||||||
"""[<channel>] [<name|url> ...]
|
"""[<channel>] [<name|url> ...]
|
||||||
|
|
||||||
Sets the current list of announced feeds in the channel to the feeds
|
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. <channel> is only necessary if the message isn't
|
URLs for a RSS feeds. <channel> is only necessary if the message isn't
|
||||||
sent in the channel itself.
|
sent in the channel itself.
|
||||||
"""
|
"""
|
||||||
channel = privmsgs.getChannel(msg, args)
|
|
||||||
conf.supybot.plugins.RSS.announce.get(channel).setValue(args)
|
conf.supybot.plugins.RSS.announce.get(channel).setValue(args)
|
||||||
if not args:
|
if not args:
|
||||||
irc.replySuccess('All previous announced feeds removed.')
|
irc.replySuccess('All previous announced feeds removed.')
|
||||||
else:
|
else:
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
announce = privmsgs.checkChannelCapability(announce, 'op')
|
||||||
|
|
||||||
def rss(self, irc, msg, args):
|
def rss(self, irc, msg, args):
|
||||||
"""<url>
|
"""<url>
|
||||||
|
Loading…
Reference in New Issue
Block a user