summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'