Add some debug messages, because why not.

This commit is contained in:
Robert Gerus 2014-03-09 10:53:37 +01:00
parent eac7543bfe
commit 73f345eefc

View file

@ -7,7 +7,14 @@ class Repost < EventMachine::IRC::Client
# Having per-command lists of blocks of code to call would be # Having per-command lists of blocks of code to call would be
# faster, but it's not a problem for now. Might refactor this loop # faster, but it's not a problem for now. Might refactor this loop
# and register_trigger() method if it comes to that. # and register_trigger() method if it comes to that.
trigger[:code].call(message) if message[:command] == trigger[:command] begin
trigger[:code].call(message) if message[:command] == trigger[:command]
rescue => e
puts "inspect!"
puts e.inspect
puts "backtrace!"
puts e.backtrace
end
end end
end end