mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Convert not to care how long its messages are.
This commit is contained in:
parent
3161bb5750
commit
d3f1ca724f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user