]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/debugger.rb
url plugin: add list of hosts for which no link info should be retrieved
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / debugger.rb
index 2851d6a9ffd97aa1efbd78a8b847540e95534b78..fe000324e8383118dd898d54588e05f3172321ba 100644 (file)
@@ -1,7 +1,11 @@
-# Debugging/profiling for rbot
+#-- vim:sw=2:et
+#++
 #
-# (c) 2006 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
-# Licensed under GPL V2.
+# :title: Debugging/profiling for rbot
+#
+# Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>
+# Copyright:: (C) 2006-2007 Giuseppe Bilotta
+# License:: GPL v2
 
 class DebugPlugin < Plugin
   BotConfig.register BotConfigIntegerValue.new('debug.interval',
@@ -44,7 +48,7 @@ class DebugPlugin < Plugin
           end
 
           @delta.clear
-          (@curr.keys + @delta.keys).uniq.each do |k,v|
+          (@curr.keys + @prev.keys).uniq.each do |k,v|
             @delta[k] = @curr[k]-@prev[k]
           end