summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-02 09:02:17 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-02 09:02:17 +0000
commit6cd8a9744dc12e27e97393f2f854e9ae07e9cccc (patch)
tree0660f756d53e90f583f598ae35c8f6c21c652d90 /lib/rbot
parentec1283c068d81d5d5abb153b5dac00655d854a00 (diff)
Fix help (one more time)
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/basics.rb4
-rw-r--r--lib/rbot/plugins.rb2
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)