Fix for that RSS bug thing that mgoldey had (and subsequently, Evil_Lyra had).

This commit is contained in:
Jeremy Fincher 2005-01-09 16:42:20 +00:00
parent 225c565aee
commit cba61a9dfe

View File

@ -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)