mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-06 17:44:09 +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', ' ') \
|
headlines = [d['title'].strip().replace('\n', ' ') \
|
||||||
for d in feed['items']]
|
for d in feed['items']]
|
||||||
headlines = map(utils.htmlToText, headlines)
|
headlines = map(utils.htmlToText, headlines)
|
||||||
payload = ircutils.privmsgPayload(headlines, ' :: ')
|
if not headlines:
|
||||||
if not payload:
|
|
||||||
irc.error(msg, 'Error grabbing RSS feed')
|
irc.error(msg, 'Error grabbing RSS feed')
|
||||||
return
|
return
|
||||||
irc.reply(msg, payload)
|
irc.reply(msg, ' :: '.join(headlines)
|
||||||
|
|
||||||
def rssinfo(self, irc, msg, args):
|
def rssinfo(self, irc, msg, args):
|
||||||
"""<url>
|
"""<url>
|
||||||
|
Loading…
Reference in New Issue
Block a user