summaryrefslogtreecommitdiff
path: root/lib/rbot/plugins.rb
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2015-03-11 09:51:52 +0100
committerMatthias H <apoc@sixserv.org>2015-03-11 09:51:52 +0100
commit545f21791ad804a52f6b7470403a1fa5a3976f5f (patch)
treef85ad38f428b0970886fbf36d0d9055493ceeef4 /lib/rbot/plugins.rb
parent63785bdaded80af35574add65958aa0df2bd5c41 (diff)
plugins fix missing save for 1.9
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r--lib/rbot/plugins.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index 3ec52fd9..cf145c83 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -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'