aboutsummaryrefslogtreecommitdiff
path: root/dinobot.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 23:23:53 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 23:23:53 -0700
commitab93b4cacfb71fc5de25be245ad7d8092de2131b (patch)
tree26da5502e30864a1909f77c171b7319c9a7f0abb /dinobot.rb
parent03a29033194c7740ea4717cbfe2fbaf32325611d (diff)
downloaddinobot-ab93b4cacfb71fc5de25be245ad7d8092de2131b.tar.gz
dinobot-ab93b4cacfb71fc5de25be245ad7d8092de2131b.tar.xz
Minor bug fixes and improved admin module.
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