summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-08 16:28:53 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-08 16:28:53 +0200
commit3b8b9d66fb60469a05a51bbcdf9bc919de155e07 (patch)
tree0df202c11b8d2ac7226c18b245934ff5779ea3c8 /lib
parentdb3b9833d9e8510ed26a2964dc9de4174d14338a (diff)
revert previous useless commit and rdocify documentation of accessors to BotModule
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/utils/extends.rb4
-rw-r--r--lib/rbot/plugins.rb11
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/rbot/core/utils/extends.rb b/lib/rbot/core/utils/extends.rb
index 1f4fd6fe..e9581bc0 100644
--- a/lib/rbot/core/utils/extends.rb
+++ b/lib/rbot/core/utils/extends.rb
@@ -366,10 +366,6 @@ module ::Irc
end
class BotModule
-
- # The botmodule registry
- attr_reader :registry
-
# Sometimes plugins need to create a new fake message based on an existing
# message: for example, this is done by alias, linkbot, reaction and remotectl.
#
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index 567724f8..d68163ae 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -134,9 +134,14 @@ module Plugins
=end
class BotModule
- attr_reader :bot # the associated bot
- attr_reader :registry # the plugin registry
- attr_reader :handler # the message map handler
+ # the associated bot
+ attr_reader :bot
+
+ # the plugin registry
+ attr_reader :registry
+
+ # the message map handler
+ attr_reader :handler
# Initialise your bot module. Always call super if you override this method,
# as important variables are set up for you: