From 97ed14b16b95b2bc1a9c6f3e41d21069658719f4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 3 Nov 2005 19:00:22 +0000 Subject: [PATCH] remove our jid before we stringprep --- src/common/connection.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 433705077..f66ae624b 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1257,15 +1257,15 @@ class Connection: return r = self.connection.getRoster().getRaw() + # Remove or jid + jid = gajim.get_jid_from_account(self.name) + if r.has_key(jid): + del r[jid] + roster = {} for jid in r: roster[helpers.parse_jid(jid)] = r[jid] - jid = gajim.get_jid_from_account(self.name) - - if roster.has_key(jid): - del roster[jid] - self.dispatch('ROSTER', roster) # continue connection