Convert not to care how long its messages are.

This commit is contained in:
Jeremy Fincher 2003-09-07 05:37:49 +00:00
parent 3161bb5750
commit d3f1ca724f

View File

@ -105,11 +105,10 @@ class RSS(callbacks.Privmsg):
headlines = [d['title'].strip().replace('\n', ' ') \
for d in feed['items']]
headlines = map(utils.htmlToText, headlines)
payload = ircutils.privmsgPayload(headlines, ' :: ')
if not payload:
if not headlines:
irc.error(msg, 'Error grabbing RSS feed')
return
irc.reply(msg, payload)
irc.reply(msg, ' :: '.join(headlines)
def rssinfo(self, irc, msg, args):
"""<url>