From 29cc359a91d8f73f9a2f4e47646e691bfe117346 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 14 Apr 2014 05:48:01 -0700 Subject: Add very basic admin support. --- dinobot.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dinobot.rb') 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 -- cgit v1.2.3-70-g09d2