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