comparison src/plugins/plugin_misc_account.py @ 2142:be96beb7ca14

core, bridge, frontends: renamed asyncConnect to connect, and added options parameters (not used yet)
author Goffi <goffi@goffi.org>
date Mon, 06 Feb 2017 22:54:43 +0100
parents 2daf7b4c6756
children 1d3f73e065e1
comparison
equal deleted inserted replaced
2141:35762e9ce8b9 2142:be96beb7ca14
615 else: 615 else:
616 raise exceptions.ConflictError 616 raise exceptions.ConflictError
617 617
618 d = self.createProfile(password, jid_s, jid_s) 618 d = self.createProfile(password, jid_s, jid_s)
619 d.addCallback(lambda dummy: self.host.memory.getProfileName(jid_s)) # checks if the profile has been successfuly created 619 d.addCallback(lambda dummy: self.host.memory.getProfileName(jid_s)) # checks if the profile has been successfuly created
620 d.addCallback(self.host.asyncConnect, password, 0) 620 d.addCallback(self.host.connect, password, {}, 0)
621 621
622 622
623 def connected(result): 623 def connected(result):
624 self.sendEmails(None, profile=jid_s) 624 self.sendEmails(None, profile=jid_s)
625 return result 625 return result