# File lib/net/yail/IRCBot.rb, line 97 def irc_loop while true until @irc.dead_socket sleep 15 @irc.handle(:irc_loop) Thread.pass end # Disconnected? Wait a little while and start up again. sleep 30 @irc.stop_listening self.connect_socket start_listening end end