Add connection join check in irc.py