stringprep our jid to compare it with others

This commit is contained in:
Yann Leboulanger 2005-11-15 19:41:43 +00:00
parent 3c3796de33
commit 71271279d0
1 changed files with 5 additions and 5 deletions

View File

@ -1259,15 +1259,15 @@ class Connection:
return return
r = self.connection.getRoster().getRaw() 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 = {} roster = {}
for jid in r: for jid in r:
roster[helpers.parse_jid(jid)] = r[jid] roster[helpers.parse_jid(jid)] = r[jid]
# Remove or jid
our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name))
if roster.has_key(our_jid):
del roster[our_jid]
self.dispatch('ROSTER', roster) self.dispatch('ROSTER', roster)
# continue connection # continue connection