aboutsummaryrefslogtreecommitdiff
path: root/dinobot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'dinobot.rb')
-rw-r--r--dinobot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/dinobot.rb b/dinobot.rb
index 09964ef..c62771b 100644
--- a/dinobot.rb
+++ b/dinobot.rb
@@ -106,7 +106,7 @@ module Dinobot
case method.first
when :say
send(*method) if method.length == 3
- when :join, :part, :load_module, :unload_module
+ when :join, :part
send(*method) if method.length == 2
end
end
@@ -144,7 +144,7 @@ module Dinobot
load "#{mod}.rb"
m = Dinobot.const_get(Dinobot.constants.find { |x| x.downcase == mod })
- @modules[mod] = m.new
+ @modules[mod] = m.new(self)
puts "== Loaded module: #{mod} (#{m})"
rescue LoadError, StandardError => e