mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fix for RFE #1012383, RSS shouldn't announce announced feeds right after startup.
This commit is contained in:
parent
0d53db7512
commit
dccf91c855
@ -101,6 +101,7 @@ class RSS(callbacks.Privmsg):
|
|||||||
self._registerFeed(name)
|
self._registerFeed(name)
|
||||||
url = self.registryValue('feeds.%s' % name)
|
url = self.registryValue('feeds.%s' % name)
|
||||||
self.makeFeedCommand(name, url)
|
self.makeFeedCommand(name, url)
|
||||||
|
self.getFeed(url) # So announced feeds don't announce on startup.
|
||||||
|
|
||||||
def _registerFeed(self, name, url=''):
|
def _registerFeed(self, name, url=''):
|
||||||
self.registryValue('feeds').add(name)
|
self.registryValue('feeds').add(name)
|
||||||
@ -110,10 +111,9 @@ class RSS(callbacks.Privmsg):
|
|||||||
def __call__(self, irc, msg):
|
def __call__(self, irc, msg):
|
||||||
callbacks.Privmsg.__call__(self, irc, msg)
|
callbacks.Privmsg.__call__(self, irc, msg)
|
||||||
irc = callbacks.SimpleProxy(irc, msg)
|
irc = callbacks.SimpleProxy(irc, msg)
|
||||||
L = conf.supybot.plugins.RSS.announce.getValues(fullNames=False)
|
|
||||||
newFeeds = {}
|
newFeeds = {}
|
||||||
for (channel, v) in L:
|
for channel in irc.state.channels:
|
||||||
feeds = v()
|
feeds = self.registryValue('announce', channel)
|
||||||
for name in feeds:
|
for name in feeds:
|
||||||
commandName = callbacks.canonicalName(name)
|
commandName = callbacks.canonicalName(name)
|
||||||
if self.isCommand(commandName):
|
if self.isCommand(commandName):
|
||||||
|
Loading…
Reference in New Issue
Block a user