diff options
-rw-r--r-- | lib/rbot/core/basics.rb | 4 | ||||
-rw-r--r-- | lib/rbot/plugins.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/core/basics.rb b/lib/rbot/core/basics.rb index f6b07e01..4c18037e 100644 --- a/lib/rbot/core/basics.rb +++ b/lib/rbot/core/basics.rb @@ -90,8 +90,8 @@ class BasicsModule < CoreBotModule # @bot.say m.replyto, @lang.get("hello_X") % m.sourcenick
# handle help requests for "core" topics
- def help(plugin, topic="")
- case topic
+ def help(cmd, topic="")
+ case cmd
when "quit"
return "quit [<message>] => quit IRC with message <message>"
when "restart"
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 0dc88324..8aa75d20 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -533,7 +533,7 @@ module Plugins 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) |