diff --git a/repost.rb b/repost.rb index 516237e..b301f9d 100644 --- a/repost.rb +++ b/repost.rb @@ -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