# File rbot/ircsocket.rb, line 16 def initialize(server, port, host, sendfreq=2, maxburst=4) @server = server.dup @port = port.to_i @host = host @lines_sent = 0 @lines_received = 0 if sendfreq @sendfreq = sendfreq.to_f else @sendfreq = 2 end @last_send = Time.new - @sendfreq @burst = 0 if maxburst @maxburst = maxburst.to_i else @maxburst = 4 end end