From 701fe4267f7728ac645fedc89da753fa60744026 Mon Sep 17 00:00:00 2001 From: js Date: Wed, 23 Jul 2008 18:34:26 +0000 Subject: [PATCH] Fix a TB. --- src/chat_control.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 8eec4c678..5117f65fd 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -142,9 +142,10 @@ class ChatControlBase(MessageControl): if resource is None: # We very likely got a contact with a random resource. # This is bad, we need the highest for caps etc. - contact = gajim.contacts. \ - get_contact_with_highest_priority( + c = gajim.contacts.get_contact_with_highest_priority( acct, contact.jid) + if c: + contact = c MessageControl.__init__(self, type_id, parent_win, widget_name, contact, acct, resource = resource);