def start(self, proxy=None): if not self.connect(None, proxy): raise Exception(_('Console', 'cannot_connect').format(server=self.Server, port=self.Port)) if not self.auth(self.jid, self.password): raise Exception(_('Console', 'cannot_auth').format(jid=self.jid)) self._RegisterHandlers() debug("Sending initial presence to all contacts...") for jid in UserAccount.getAllMembers(): self.send(Presence(to=jid, frm=self.jid, typ='probe')) user = UserAccount(JID(jid)) self.sendBitcoinPresence(self, user) for addr in user.getRoster(): Address(JID(addr)).sendBitcoinPresence(self, user)