diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 23:23:53 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 23:23:53 -0700 |
commit | ab93b4cacfb71fc5de25be245ad7d8092de2131b (patch) | |
tree | 26da5502e30864a1909f77c171b7319c9a7f0abb /dinobot.rb | |
parent | 03a29033194c7740ea4717cbfe2fbaf32325611d (diff) | |
download | dinobot-ab93b4cacfb71fc5de25be245ad7d8092de2131b.tar.gz dinobot-ab93b4cacfb71fc5de25be245ad7d8092de2131b.tar.xz |
Minor bug fixes and improved admin module.
Diffstat (limited to 'dinobot.rb')
-rw-r--r-- | dinobot.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |