# File rbot.rb, line 218 def connect trap("SIGTERM") { quit } trap("SIGHUP") { quit } trap("SIGINT") { quit } @socket.connect @socket.puts "PASS " + @server_password if @server_password @socket.puts "NICK #{@nick}\nUSER #{@config['USER']} 4 #{@config['SERVER']} :Ruby bot. (c) Tom Gilbert" end