From 6cd8a9744dc12e27e97393f2f854e9ae07e9cccc Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 2 Oct 2006 09:02:17 +0000 Subject: Fix help (one more time) --- lib/rbot/core/basics.rb | 4 ++-- lib/rbot/plugins.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/rbot') 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 [] => quit IRC with 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) -- cgit v1.2.3