From: Giuseppe Bilotta Date: Thu, 14 Feb 2008 23:41:30 +0000 (+0100) Subject: rss plugin: CHECK if feed type is trac, '''don't''' ASSIGN trac type to all feeds X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=0e95723ec2423b159eb1a1fe8cdb5ac1be84830a;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git rss plugin: CHECK if feed type is trac, '''don't''' ASSIGN trac type to all feeds --- 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