'Called when a user joins a channel.'

def irc_JOIN(self, prefix, params):

    nick = prefix.split('!')[0]
    channel = params[(-1)]
    if (nick == self.nickname):
        self.joined(channel)
    else:
        self.userJoined(nick, channel)
