mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-02 16:09:24 +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 self.registryValue(linksconfig, channel):
|
||||||
if headline[1]:
|
if headline[1]:
|
||||||
if self.registryValue('stripRedirect'):
|
if self.registryValue('stripRedirect'):
|
||||||
link = ' <%s>' % (re.sub('^.*http://', 'http://', headline[1]),)
|
link = re.sub('^.*http://', 'http://', headline[1])
|
||||||
else:
|
else:
|
||||||
link = ' <%s>' % (headline[1],)
|
link = headline[1]
|
||||||
if self.registryValue(dateconfig, channel):
|
if self.registryValue(dateconfig, channel):
|
||||||
if headline[2]:
|
if headline[2]:
|
||||||
pubDate = ' [%s]' % (headline[2],)
|
pubDate = ' [%s]' % (headline[2],)
|
||||||
newheadlines.append(format('%s%s%s',
|
newheadlines.append(format('%s %u%s',
|
||||||
headline[0],
|
headline[0],
|
||||||
link.encode('utf-8'),
|
link.encode('utf-8'),
|
||||||
pubDate))
|
pubDate))
|
||||||
|
Loading…
Reference in New Issue
Block a user