minor fixes for ctrl.set_session

This commit is contained in:
Brendan Taylor 2008-06-10 02:58:04 +00:00
parent ce0910321d
commit 3ec61df48b
1 changed files with 3 additions and 1 deletions

View File

@ -134,6 +134,8 @@ class MessageControl:
new_key = session.thread_id
if oldsession:
oldsession.control = None
jid = self.contact.jid
if self.resource:
jid += '/' + self.resource
@ -143,7 +145,7 @@ class MessageControl:
if oldsession.enable_encryption:
self.print_esession_details()
else:
elif session:
self.parent_win.move_from_sessionless(self)
def send_message(self, message, keyID = '', type = 'chat',