<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,12 +8,11 @@ class Seen &lt; CampfireBot::Plugin
   on_command 'reload_seen', :reload
   
   def initialize
-    @data_file = File.join(BOT_ROOT, 'tmp', 'seen.yml')
+    @data_file  = File.join(BOT_ROOT, 'tmp', 'seen.yml')
+    @seen       = YAML::load(File.read(@data_file)) rescue {}
   end
   
   def update(msg)
-    @seen ||= init
- 
     left_room = (msg[:message] == &quot;has left the room &quot; ? true : false)
     @seen[msg[:person]] = {:time =&gt; Time.now, :left =&gt; left_room}
  
@@ -23,12 +22,6 @@ class Seen &lt; CampfireBot::Plugin
   end
   
   def seen(msg)
-    @seen ||= init
-    puts @seen
-    puts msg[:message]
-    
-    puts msg[:message] =~ Regexp.new(&quot;^#{bot.config['nickname']},\\s+#{SEEN_REGEXP.source}&quot;, Regexp::IGNORECASE)
-    puts $1, $2
     found = false
     
     if !$2.nil?
@@ -51,16 +44,12 @@ class Seen &lt; CampfireBot::Plugin
   end
   
   def reload(msg)
-    @facts = init
-    speak(&quot;ok, reloaded #{@facts.size} seen db&quot;)
+    @seen = {}
+    speak(&quot;ok, reloaded seen db&quot;)
   end
   
   protected
   
-  def init
-    YAML::load(File.read(@data_file))
-  end
-  
   def time_ago_in_words(from_time, include_seconds = false)
     distance_of_time_in_words(from_time, Time.now, include_seconds)
   end</diff>
      <filename>plugins/seen.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4453765c016ab4c3c7cb6b77d9aaf19e1118814f</id>
    </parent>
  </parents>
  <author>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </author>
  <url>http://github.com/timriley/campfire-bot/commit/8c3cc88d6e74176f4990f3c36b70bdfe3ca243bf</url>
  <id>8c3cc88d6e74176f4990f3c36b70bdfe3ca243bf</id>
  <committed-date>2008-11-24T05:05:16-08:00</committed-date>
  <authored-date>2008-11-24T05:05:16-08:00</authored-date>
  <message>some fixes to the seen plugin</message>
  <tree>01d6617a2e8f67919a36d20f9892878ec1f71c7a</tree>
  <committer>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </committer>
</commit>
