From ba3ac3a592fb13e6e409d3375dd139b0d9fad731 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Thu, 20 Jul 2006 08:41:16 +0000 Subject: [PATCH] dont create self_contact if we receive our presence --- src/gajim.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index d9a752201..b16901538 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -398,15 +398,16 @@ class Interface: # presence of another resource of out jid if resource == gajim.connections[account].server_resource: resource = gajim.config.get_per('accounts', account, 'resource') - contact1 = gajim.contacts.create_contact(jid = ji, - name = gajim.nicks[account], groups = [], - show = array[1], status = status_message, sub = 'both', - ask = 'none', priority = priority, keyID = keyID, - resource = resource) - old_show = 0 - gajim.contacts.add_contact(account, contact1) - lcontact.append(contact1) - self.roster.add_self_contact(account) + else: + contact1 = gajim.contacts.create_contact(jid = ji, + name = gajim.nicks[account], groups = [], + show = array[1], status = status_message, sub = 'both', + ask = 'none', priority = priority, keyID = keyID, + resource = resource) + old_show = 0 + gajim.contacts.add_contact(account, contact1) + lcontact.append(contact1) + self.roster.add_self_contact(account) elif contact1.show in statuss: old_show = statuss.index(contact1.show) if (resources != [''] and (len(lcontact) != 1 or