Added a timeout parameter to irc.reconnect.