aboutsummaryrefslogtreecommitdiff
path: root/dinobot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'dinobot.rb')
-rw-r--r--dinobot.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/dinobot.rb b/dinobot.rb
index 01eeeab..4828aac 100644
--- a/dinobot.rb
+++ b/dinobot.rb
@@ -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