|
# File rbot/plugins.rb, line 204
def delegate(method, message)
@@plugins.values.uniq.each {|p|
if(p.respond_to? method)
begin
p.send method, message
rescue StandardError, NameError, SyntaxError => err
puts "plugin #{p.name} #{method}() failed: " + err
puts err.backtrace.join("\n")
end
end
}
end
|