--- a/plugins/rss_plugin.py Sun May 20 09:56:47 2007 +0200
+++ b/plugins/rss_plugin.py Sun May 20 12:33:55 2007 +0200
@@ -126,9 +126,16 @@
title = rss_remove_html(item['title'])
link = item['link']
description = rss_remove_html(item['description'])
- reply = title + ' - '
- if description:
- reply += description + ' - '
+ # Don't send title if it's part of the description (for example in
+ # Mercurial's changesets).
+ if not description:
+ reply = title + '\n'
+ else:
+ if description.startswith(title):
+ reply = ''
+ else:
+ reply = title + ' - '
+ reply += description + '\n'
reply += link
for groupchat in RSS_CACHE['channels'][channel]['subscribers']:
if GROUPCHATS.has_key(groupchat):