]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rss plugin: CHECK if feed type is trac, '''don't''' ASSIGN trac type to all feeds
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Feb 2008 23:41:30 +0000 (00:41 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Feb 2008 23:41:30 +0000 (00:41 +0100)
data/rbot/plugins/rss.rb

index f8d8c99795647db4672edbd791ee2675c012eb15..a07a7c37a796bfc2ecbd304a01dcd20f5bb1d952 100644 (file)
@@ -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\r
       # visible in the URL anyway\r
       # TODO make this optional?\r
-      base_title.sub!(/^Changeset \[([\da-f]{40})\]:/) { |c| "(git commit)"} if feed.type = 'trac'\r
+      base_title.sub!(/^Changeset \[([\da-f]{40})\]:/) { |c| "(git commit)"} if feed.type == 'trac'\r
       title = "#{Bold}#{base_title.ircify_html(tit_opt)}#{Bold}"\r
     end\r
 \r