]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/plugins.rb
attempt to resolve #65
[user/henk/code/ruby/rbot.git] / lib / rbot / plugins.rb
index f45e44f48d97bda5669ac2d718547785c20493ba..54b814e0eb400c89e5c58c09c0f017a3141ce93d 100644 (file)
@@ -99,6 +99,10 @@ module Plugins
       @registry = BotRegistryAccessor.new(@bot, self.class.to_s.gsub(/^.*::/, ""))
     end
 
+    def flush_registry
+      @registry.flush
+    end
+
     def map(*args)
       @handler.map(*args)
       # register this map
@@ -212,6 +216,7 @@ module Plugins
 
     # call the save method for each active plugin
     def save
+      delegate 'flush_registry'
       delegate 'save'
     end