From 13ce598a50f128161ef97a2126b6076f90dcd4ce Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 10 May 2011 15:46:20 +0200 Subject: [PATCH] core: fixed bad profile check in connect method --- src/sat.tac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sat.tac b/src/sat.tac index 369649b5..a6ff70fa 100644 --- a/src/sat.tac +++ b/src/sat.tac @@ -448,7 +448,7 @@ class SAT(service.Service): """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 @@ class SAT(service.Service): 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)