]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
plugins fix missing save for 1.9
authorMatthias H <apoc@sixserv.org>
Wed, 11 Mar 2015 08:51:52 +0000 (09:51 +0100)
committerMatthias H <apoc@sixserv.org>
Wed, 11 Mar 2015 08:51:52 +0000 (09:51 +0100)
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'