'Join a channel
If `channel` contains a space, and no `password` is given, the space is
assumed to split the argument into the channel to join and its
password.  `channel` should not contain a space if `password` is given.'

def join(self, channel, password=None):

    if (password is None):
        self.write((u'JOIN', channel))
    else:
        self.write([u'JOIN', channel, password])
