Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjs <js-gajim@webkeks.org>2008-07-23 22:34:26 +0400
committerjs <js-gajim@webkeks.org>2008-07-23 22:34:26 +0400
commit701fe4267f7728ac645fedc89da753fa60744026 (patch)
treeb41d59037994ff6658c77050854b449af46a96eb
parent40112aa1280604bae4f725da8eed363316931384 (diff)
Fix a TB.
-rw-r--r--src/chat_control.py5
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);