trap_sigs (Irc::Bot)

    # File lib/rbot/ircbot.rb, line 830
      def trap_sigs
        begin
          trap("SIGINT") { got_sig("SIGINT") }
          trap("SIGTERM") { got_sig("SIGTERM") }
          trap("SIGHUP") { got_sig("SIGHUP", :restart) }
        rescue ArgumentError => e
          debug "failed to trap signals (#{e.pretty_inspect}): running on Windows?"
        rescue Exception => e
          debug "failed to trap signals: #{e.pretty_inspect}"
        end
      end