diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 05:48:01 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 05:48:01 -0700 |
commit | 29cc359a91d8f73f9a2f4e47646e691bfe117346 (patch) | |
tree | 6708940a2a4f848e53bba6fb1c265a778651c57c /dinobot.rb | |
parent | 376b34ee7249525b0adb49e8c8043ab2fa0d8347 (diff) | |
download | dinobot-29cc359a91d8f73f9a2f4e47646e691bfe117346.tar.gz dinobot-29cc359a91d8f73f9a2f4e47646e691bfe117346.tar.xz |
Add very basic admin support.
Diffstat (limited to 'dinobot.rb')
-rw-r--r-- | dinobot.rb | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -68,7 +68,9 @@ module Dinobot mod = message.split.first.downcase.intern if @modules.has_key?(mod) - exec_commands(@modules[mod].call(user, channel, message)) + commands = @modules[mod].call(user, channel, message) + + exec_commands(commands) unless commands.nil? end end end |