# @bot.say m.replyto, @lang.get("hello_X") % m.sourcenick\r
\r
# handle help requests for "core" topics\r
- def help(plugin, topic="")\r
- case topic\r
+ def help(cmd, topic="")\r
+ case cmd\r
when "quit"\r
return "quit [<message>] => quit IRC with message <message>"\r
when "restart"\r
if commands.has_key?(k)
p = commands[k][:botmodule]
begin
- return p.help(p.name, topic)
+ return p.help(key, params)
rescue Exception => err
#rescue TimeoutError, StandardError, NameError, SyntaxError => err
error report_error("#{p.botmodule_class} #{p.name} help() failed:", err)