Google

# File rbot/ircbot.rb, line 233
  def connect
    trap("SIGTERM") { quit }
    trap("SIGHUP") { quit }
    trap("SIGINT") { quit }
    begin
      @socket.connect
      rescue => e
      raise "failed to connect to IRC server at #{@config['SERVER']} #{@config['PORT']}: " + e
    end
    @socket.puts "PASS " + @server_password if @server_password
    @socket.puts "NICK #{@nick}\nUSER #{@config['USER']} 4 #{@config['SERVER']} :Ruby bot. (c) Tom Gilbert"
  end