mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
RSS: Honor configuration variable supybot.reply.format.url in announces. Closes GH-487.
This commit is contained in:
parent
3bab899146
commit
071b61061a
@ -149,13 +149,13 @@ class RSS(callbacks.Plugin):
|
||||
if self.registryValue(linksconfig, channel):
|
||||
if headline[1]:
|
||||
if self.registryValue('stripRedirect'):
|
||||
link = ' <%s>' % (re.sub('^.*http://', 'http://', headline[1]),)
|
||||
link = re.sub('^.*http://', 'http://', headline[1])
|
||||
else:
|
||||
link = ' <%s>' % (headline[1],)
|
||||
link = headline[1]
|
||||
if self.registryValue(dateconfig, channel):
|
||||
if headline[2]:
|
||||
pubDate = ' [%s]' % (headline[2],)
|
||||
newheadlines.append(format('%s%s%s',
|
||||
newheadlines.append(format('%s %u%s',
|
||||
headline[0],
|
||||
link.encode('utf-8'),
|
||||
pubDate))
|
||||
|
Loading…
Reference in New Issue
Block a user