mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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)
|
||||
url = self.registryValue('feeds.%s' % name)
|
||||
self.makeFeedCommand(name, url)
|
||||
self.getFeed(url) # So announced feeds don't announce on startup.
|
||||
|
||||
def _registerFeed(self, name, url=''):
|
||||
self.registryValue('feeds').add(name)
|
||||
@ -110,10 +111,9 @@ class RSS(callbacks.Privmsg):
|
||||
def __call__(self, irc, msg):
|
||||
callbacks.Privmsg.__call__(self, irc, msg)
|
||||
irc = callbacks.SimpleProxy(irc, msg)
|
||||
L = conf.supybot.plugins.RSS.announce.getValues(fullNames=False)
|
||||
newFeeds = {}
|
||||
for (channel, v) in L:
|
||||
feeds = v()
|
||||
for channel in irc.state.channels:
|
||||
feeds = self.registryValue('announce', channel)
|
||||
for name in feeds:
|
||||
commandName = callbacks.canonicalName(name)
|
||||
if self.isCommand(commandName):
|
||||
|
Loading…
Reference in New Issue
Block a user