mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fix for that RSS bug thing that mgoldey had (and subsequently, Evil_Lyra had).
This commit is contained in:
parent
225c565aee
commit
cba61a9dfe
@ -167,7 +167,7 @@ class RSS(callbacks.Privmsg):
|
|||||||
|
|
||||||
def buildHeadlines(self, headlines, channel, config='announce.showLinks'):
|
def buildHeadlines(self, headlines, channel, config='announce.showLinks'):
|
||||||
newheadlines = []
|
newheadlines = []
|
||||||
if self.registryValue('%s' % config, channel):
|
if self.registryValue(config, channel):
|
||||||
for headline in headlines:
|
for headline in headlines:
|
||||||
if headline[1]:
|
if headline[1]:
|
||||||
newheadlines.append('%s <%s>' % headline)
|
newheadlines.append('%s <%s>' % headline)
|
||||||
@ -210,8 +210,8 @@ class RSS(callbacks.Privmsg):
|
|||||||
if bold:
|
if bold:
|
||||||
pre = ircutils.bold(pre)
|
pre = ircutils.bold(pre)
|
||||||
sep = ircutils.bold(sep)
|
sep = ircutils.bold(sep)
|
||||||
newheadlines = self.buildHeadlines(newheadlines, channel)
|
headlines = self.buildHeadlines(newheadlines, channel)
|
||||||
irc.replies(newheadlines, prefixer=pre, joiner=sep,
|
irc.replies(headlines, prefixer=pre, joiner=sep,
|
||||||
to=channel, prefixName=False, private=True)
|
to=channel, prefixName=False, private=True)
|
||||||
finally:
|
finally:
|
||||||
self.releaseLock(url)
|
self.releaseLock(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user