'Disco#info results for a JID are required to include at least
one identity and feature. As a default, if no other identity is
provided, SleekXMPP will use either the generic component or the
bot client identity. A the standard disco#info feature will also be
added if no features are provided.
Arguments:
info -- The disco#info quest (not the full Iq stanza) to modify.'

def _fix_default_info(self, info):

    result = info
    if isinstance(info, Iq):
        info = info['disco_info']
    if (not info['node']):
        if (not info['identities']):
            if self.xmpp.is_component:
                log.debug(('No    identity    found    for    this    entity.    ' + 'Using    default    component    identity.'))
                info.add_identity('component', 'generic')
            else:
                log.debug(('No    identity    found    for    this    entity.    ' + 'Using    default    client    identity.'))
                info.add_identity('client', 'bot')
        if (not info['features']):
            log.debug(('No    features    found    for    this    entity.    ' + 'Using    default    disco#info    feature.'))
            info.add_feature(info.namespace)
    return result
