From 0e95723ec2423b159eb1a1fe8cdb5ac1be84830a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 15 Feb 2008 00:41:30 +0100 Subject: [PATCH] rss plugin: CHECK if feed type is trac, '''don't''' ASSIGN trac type to all feeds --- data/rbot/plugins/rss.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index f8d8c997..a07a7c37 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -868,7 +868,7 @@ class RSSFeedsPlugin < Plugin # git changesets are SHA1 hashes (40 hex digits), way too long, get rid of them, as they are # visible in the URL anyway # TODO make this optional? - base_title.sub!(/^Changeset \[([\da-f]{40})\]:/) { |c| "(git commit)"} if feed.type = 'trac' + base_title.sub!(/^Changeset \[([\da-f]{40})\]:/) { |c| "(git commit)"} if feed.type == 'trac' title = "#{Bold}#{base_title.ircify_html(tit_opt)}#{Bold}" end -- 2.39.5