public
Description: An extensible bot for the Campfire web-based chat system #crc
Homepage:
Clone URL: git://github.com/timriley/campfire-bot.git
bug fixes
timriley (author)
Mon Oct 27 20:01:06 -0700 2008
commit  a97eb60415f1954478998784cd911caa3deb1f58
tree    2f4c23682b9a7123688cc544ecfcf5ffa4f64afc
parent  56c245fd80d827b306c0145540e4722cb1c8762c
...
75
76
77
78
 
79
80
81
82
83
84
 
85
86
87
...
97
98
99
100
 
101
102
103
...
75
76
77
 
78
79
80
81
82
83
 
84
85
86
87
...
97
98
99
 
100
101
102
103
0
@@ -75,13 +75,13 @@ module CampfireBot
0
       end
0
   
0
       def match?
0
-        @last_run < Time.now - @matcher
0
+        @last_run < ::Time.now - @matcher
0
       end
0
   
0
       def run(force = false)
0
         if match?
0
           Plugin.registered_plugins[@plugin].send(@method)
0
-          @last_run = Time.now
0
+          @last_run = ::Time.now
0
         else
0
           false
0
         end
0
@@ -97,7 +97,7 @@ module CampfireBot
0
       end
0
   
0
       def match?
0
-        @matcher <= Time.now && !@run
0
+        @matcher <= ::Time.now && !@run
0
       end
0
   
0
       def run(force = false)

Comments