def irc_command_JOIN(self, command, args, nick, user, host):
        chan = args[0]

        if nick == self._nick:
            if chan in self._joining:
                self._joining.remove(chan)
            if not chan in self._channels:
                self._channels[chan] = Channel(chan)

        if chan in self._channels:
            name = nick
            while name[0] in '@+':
                name = name[1:]
            if not name in self._channels[chan].users:
                self._channels[chan].users.append(name)

        self.irc_join(chan, nick, user, host)
Received whenever a user, including ourself, joins a channel.
dataset/ETHPy150Open ecdavis/pants/pants/contrib/irc.py/IRCClient.irc_command_JOIN