]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
plugins: expose the registry and the map handler as methods for the BotModule class
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 27 Mar 2008 21:38:13 +0000 (22:38 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 27 Mar 2008 23:53:44 +0000 (00:53 +0100)
lib/rbot/plugins.rb

index 9d633c1b838c9bb4365a1dc1d904aeb5cdb8c443..5280a117f4b4bacce97be28a088fa764852b987d 100644 (file)
@@ -130,6 +130,8 @@ module Plugins
 
   class BotModule
     attr_reader :bot   # the associated bot
+    attr_reader :registry # the plugin registry
+    attr_reader :handler # the message map handler
 
     # Initialise your bot module. Always call super if you override this method,
     # as important variables are set up for you: