Wed Jul 18 08:27:18 EST 2007 Matt Palmer * Uncomment a few debug statements in PluginManager#delegate diff -rN -u old-bugfixes/lib/rbot/plugins.rb new-bugfixes/lib/rbot/plugins.rb --- old-bugfixes/lib/rbot/plugins.rb 2008-10-20 23:31:05.919879167 +1100 +++ new-bugfixes/lib/rbot/plugins.rb 2008-10-20 23:31:05.963878098 +1100 @@ -612,13 +612,13 @@ # see if each plugin handles +method+, and if so, call it, passing # +message+ as a parameter def delegate(method, *args) - # debug "Delegating #{method.inspect}" + debug "Delegating #{method.inspect}" ret = Array.new [core_modules, plugins].each { |pl| pl.each {|p| if(p.respond_to? method) begin - # debug "#{p.botmodule_class} #{p.name} responds" + debug "#{p.botmodule_class} #{p.name} responds" ret.push p.send(method, *args) rescue Exception => err raise if err.kind_of?(SystemExit) @@ -629,7 +629,7 @@ } } return ret - # debug "Finished delegating #{method.inspect}" + debug "Finished delegating #{method.inspect}" end # see if we have a plugin that wants to handle this message, if so, pass