diff options
-rw-r--r-- | core/config.rb | 2 | ||||
-rw-r--r-- | dinobot.rb | 2 | ||||
-rw-r--r-- | module/admin.rb | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/core/config.rb b/core/config.rb index fec2e18..242f030 100644 --- a/core/config.rb +++ b/core/config.rb @@ -15,6 +15,8 @@ module Dinobot if @data.nil? @data = Hash.new + @data[:debug] = false + @data[:trigger] = Hash.new @data[:trigger][:global] = '!' @@ -153,7 +153,7 @@ module Dinobot def run_methods(methods) methods.each do |m| - @logger.info "Executing method: #{m.inspect}" + @logger.info "Executing method: #{m.inspect}" if @config.data[:debug] send(*m) end end diff --git a/module/admin.rb b/module/admin.rb index 768d4f6..1a081df 100644 --- a/module/admin.rb +++ b/module/admin.rb @@ -76,7 +76,7 @@ module Dinobot def listadmins(user, channel, argument) return unless is_admin?(user) - [[:say, channel, @admins.join(' ')]] + [[:say, channel, "Admins: #{@admins.join(' ')}"]] end def listmodules(user, channel, argument) |