diff options
author | js <js-gajim@webkeks.org> | 2008-07-23 22:34:26 +0400 |
---|---|---|
committer | js <js-gajim@webkeks.org> | 2008-07-23 22:34:26 +0400 |
commit | 701fe4267f7728ac645fedc89da753fa60744026 (patch) | |
tree | b41d59037994ff6658c77050854b449af46a96eb | |
parent | 40112aa1280604bae4f725da8eed363316931384 (diff) |
Fix a TB.
-rw-r--r-- | src/chat_control.py | 5 |
1 files 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); |