Mercurial > libervia-backend
changeset 324:b069055320b1
core: fixed bad profile check in connect method
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 10 May 2011 15:46:20 +0200 |
parents | 7bc1b3401ecb |
children | d62eb9003375 |
files | src/sat.tac |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sat.tac Tue May 10 15:46:01 2011 +0200 +++ b/src/sat.tac Tue May 10 15:46:20 2011 +0200 @@ -448,7 +448,7 @@ """Connect to jabber server""" profile = self.memory.getProfileName(profile_key) - if not profile_key: + if not profile: error (_('Trying to connect a non-exsitant profile')) return @@ -456,9 +456,9 @@ info(_("already connected !")) return current = self.profiles[profile] = SatXMPPClient(self, profile, - jid.JID(self.memory.getParamA("JabberID", "Connection", profile_key = profile_key), profile), - self.memory.getParamA("Password", "Connection", profile_key = profile_key), - self.memory.getParamA("Server", "Connection", profile_key = profile_key), 5222) + jid.JID(self.memory.getParamA("JabberID", "Connection", profile_key = profile), profile), + self.memory.getParamA("Password", "Connection", profile_key = profile), + self.memory.getParamA("Server", "Connection", profile_key = profile), 5222) current.messageProt = SatMessageProtocol(self) current.messageProt.setHandlerParent(current)