<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,10 +5,12 @@ development:
   nickname: Bot Name
   password: password
   twitter_feed: 'http://search.twitter.com/search.atom?q=from%3Atimriley+OR+from%3Ahughevans+OR+from%3Aschlick+OR+from%3Aseanodowd'
+  twitter_hide_replies: false
 production:
   site: campfire_subdomain_name
   room: Company Chat
   username: foo@bar.com
   nickname: Bot Name
   password: password
-  twitter_feed: 'http://search.twitter.com/search.atom?q=from%3Atimriley+OR+from%3Ahughevans+OR+from%3Aschlick+OR+from%3Aseanodowd'
\ No newline at end of file
+  twitter_feed: 'http://search.twitter.com/search.atom?q=from%3Atimriley+OR+from%3Ahughevans+OR+from%3Aschlick+OR+from%3Aseanodowd'
+  twitter_hide_replies: false
\ No newline at end of file</diff>
      <filename>config.example.yml</filename>
    </modified>
    <modified>
      <diff>@@ -12,13 +12,15 @@ class TwitterEcho &lt; CampfireBot::Plugin
   at_interval 2.minutes, :echo_tweets
   
   def initialize
-    @feed   = CampfireBot::Bot.instance.config['twitter_feed']
-    @latest = Time.now
+    @feed         = CampfireBot::Bot.instance.config['twitter_feed']
+    @hide_replies = CampfireBot::Bot.instance.config.key?('twitter_hide_replies') ?
+                      CampfireBot::Bot.instance.config['twitter_hide_replies'] : false
+    @latest       = Time.now
   end
   
   def echo_tweets(msg = nil)
     recent_tweets.reverse.each do |tweet|
-      speak(&quot;#{coder.decode(tweet.from)}: #{coder.decode(tweet.text)} #{tweet.link}&quot;) unless tweet.text =~ /^@/
+      speak(&quot;#{coder.decode(tweet.from)}: #{coder.decode(tweet.text)} #{tweet.link}&quot;) unless (tweet.text =~ /^@/ &amp;&amp; @hide_replies)
     end
     @latest = latest_tweet.date   # next time, only print tweets newer than this
     @doc    = nil                 # reset the feed so that next time we can actually any new tweets</diff>
      <filename>plugins/twitter_echo.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4e91bf8d2ebeee2d1b64f7693a468b5d154a986a</id>
    </parent>
  </parents>
  <author>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </author>
  <url>http://github.com/timriley/campfire-bot/commit/c08814cbaeb7a60c9003c1955765f700258c435e</url>
  <id>c08814cbaeb7a60c9003c1955765f700258c435e</id>
  <committed-date>2008-10-29T06:25:50-07:00</committed-date>
  <authored-date>2008-10-29T06:25:50-07:00</authored-date>
  <message>provide an option to hide replies or not in the twitter echo plugin, instead of just hiding them by default</message>
  <tree>0abb7a7be4e42422c2c40c9fa358b811974cec96</tree>
  <committer>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </committer>
</commit>
