def connect(self): if not self.conn: self.conn = JabberBot.connect(self) self.activate_non_started_plugins() logging.info('Notifying connection to all the plugins...') self.signal_connect_to_all_plugins() logging.info('Plugin activation done.') return self.conn
def connect(self): if not self.conn: self.conn = JabberBot.connect(self) if not self.conn: logging.warning('Could not connect, deactivating all the plugins') deactivate_all_plugins() return None loading_errors = self.activate_non_started_plugins() logging.info(loading_errors) logging.info('Notifying connection to all the plugins...') self.signal_connect_to_all_plugins() logging.info('Plugin activation done.') return self.conn
def __init__(self, username, password, res=None, debug=False, privatedomain=False, acceptownmsgs=False, handlers=None): JabberBot.__init__(self, username, password, res, debug, privatedomain, acceptownmsgs, handlers) # be sure we have a configs entry for the plugin configurations if not self.internal_shelf.has_key('configs'): self.internal_shelf['configs'] = {}
def __init__(self, username, password, res=None, debug=False, privatedomain=False, acceptownmsgs=False, handlers=None): JabberBot.__init__(self, username, password, res, debug, privatedomain, acceptownmsgs, handlers)