Add some debug messages, because why not.

master
Robert Gerus 2014-03-09 10:53:37 +01:00
parent eac7543bfe
commit 73f345eefc
1 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,14 @@ class Repost < EventMachine::IRC::Client
# 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
# 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