'Save the SM-ID, if provided.
Raises an :term:`sm_enabled` event.'

def _handle_enabled(self, stanza):

    self.xmpp.features.add('stream_management')
    if stanza['id']:
        self.sm_id = stanza['id']
    self.xmpp.event('sm_enabled', stanza)
