]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/plugins.rb
plugins fix missing save for 1.9
[user/henk/code/ruby/rbot.git] / lib / rbot / plugins.rb
index 3ec52fd99b6463e564ff27e60507d57283aecdb1..cf145c83efadeb9aaffd99e60461d372c1063f85 100644 (file)
@@ -767,7 +767,7 @@ module Plugins
     def save(botmodule=nil)
       if botmodule
         botmodule.flush_registry
-        botmodule.save          
+        botmodule.save if botmodule.respond_to? 'save'
       else
         delegate 'flush_registry'
         delegate 'save'