Skip to content

Commit

Permalink
attempt to fix error.log error with IRC bot
Browse files Browse the repository at this point in the history
  • Loading branch information
cpjolicoeur committed Apr 25, 2010
1 parent 32e528e commit 4f7e5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vendor/irc/lib/IRCConnection.rb
Expand Up @@ -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|
Expand Down

0 comments on commit 4f7e5c2

Please sign in to comment.