'Initialize plugin state, such as registering event handlers.
Also sets up required event handlers.'

def _init(self):

    if (self.xmpp is not None):
        self.xmpp.add_event_handler('session_bind', self.session_bind)
        if self.xmpp.session_bind_event.is_set():
            self.session_bind(self.xmpp.boundjid.full)
    self.plugin_init()
    log.debug('Loaded    Plugin:    %s', self.description)
