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
1 changed files with 2 additions and 3 deletions

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>