# HG changeset patch # User Goffi # Date 1305035180 -7200 # Node ID b069055320b1e3b3e31b878f223c93ffb573020d # Parent 7bc1b3401ecb4d9e87b1bdbf2280215ba00244a2 core: fixed bad profile check in connect method diff -r 7bc1b3401ecb -r b069055320b1 src/sat.tac --- 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)