|
# File rbot/plugins.rb, line 185
def help(topic="")
if(topic =~ /^(\S+)\s*(.*)$/)
key = $1
params = $2
if(@@plugins.has_key?(key))
begin
return @@plugins[key].help(key, params)
rescue StandardError, NameError, SyntaxError => err
puts "plugin #{@@plugins[key].name} help() failed: " + err
puts err.backtrace.join("\n")
end
else
return false
end
end
end
|