Made some changes to the irc read thread