irc_thread_routine