def join(self, target):
        """join a channel"""
        password = self.config.passwords.get(
            target.strip(self.server_config['CHANTYPES']))
        if password:
            target += ' ' + password
        self.send_line('JOIN %s' % target)
def join ( self , target ) : password = self . config . passwords . get ( target . strip ( self . server_config [ 'CHANTYPES' ] ) ) if password : target += ' ' + password self . send_line ( 'JOIN %s' % target )
join a channel