lib/net/irc/client.rb in net-irc2-0.0.12 vs lib/net/irc/client.rb in net-irc2-0.0.13

- old
+ new

@@ -22,10 +22,10 @@ # Connect to server and start loop. def start # reset config @server_config = Message::ServerConfig.new - @socket = TCPSocket.new(@host, @port) + @socket = (@opts.tcp_socket || TCPSocket).new(@host, @port) on_connected post PASS, @opts.pass if @opts.pass post NICK, @opts.nick post USER, @opts.user, "0", "*", @opts.real