Fix a TB.

This commit is contained in:
js 2008-07-23 18:34:26 +00:00
parent 40112aa128
commit 701fe4267f
1 changed files with 3 additions and 2 deletions

View File

@ -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);