From 4f7e5c2889187dbf25957aa3a306a066de926c65 Mon Sep 17 00:00:00 2001 From: Craig P Jolicoeur Date: Sat, 24 Apr 2010 23:34:57 -0400 Subject: [PATCH] attempt to fix error.log error with IRC bot --- lib/vendor/irc/lib/IRCConnection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vendor/irc/lib/IRCConnection.rb b/lib/vendor/irc/lib/IRCConnection.rb index 619e4fd..8442680 100644 --- a/lib/vendor/irc/lib/IRCConnection.rb +++ b/lib/vendor/irc/lib/IRCConnection.rb @@ -8,14 +8,14 @@ class IRCConnection @@last_send = Time.now.to_f @@message_delay = 0.2 # Default delay to 1 fifth of a second. # Creates a socket connection and then yields. - def IRCConnection.handle_connection(server, port, nick='ChangeMe', realname='MeToo', options = nil) + def IRCConnection.handle_connection(server, port, nick='ChangeMe', realname='MeToo', options = {}) #nil) @server = server; @port = port @nick = nick @realname = realname @@options = options if options.nil? - @@options = Array.new(0) + @@options = {} #Array.new(0) end socket = create_tcp_socket(server, port) add_IO_socket(socket) {|sock|