]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/plugins.rb
Provide the InvalidPassword exception
[user/henk/code/ruby/rbot.git] / lib / rbot / plugins.rb
index b55fbe4a115d559b277a305571428225bc8f9a2e..933ea14f24927dfbb3f3211b1cc31fb497d28015 100644 (file)
@@ -417,9 +417,7 @@ module Plugins
 
     # call the cleanup method for each active plugin
     def cleanup
-      @bot.save_mutex.synchronize do
-        delegate 'cleanup'
-      end
+      delegate 'cleanup'
       reset_botmodule_lists
     end
 
@@ -520,7 +518,7 @@ module Plugins
           next unless pl.has_key?(k)
           p = pl[k][:botmodule] 
           begin
-            return p.help(p.name, topic)
+            return p.help(p.name, params)
           rescue Exception => err
             #rescue TimeoutError, StandardError, NameError, SyntaxError => err
             error report_error("#{p.botmodule_class} #{p.name} help() failed:", err)