don't remove the jid entry in _contacts[account] when we remove a contact

This commit is contained in:
Yann Leboulanger 2006-01-03 15:08:21 +00:00
parent 787f253992
commit c7337f5d1c
1 changed files with 1 additions and 4 deletions

View File

@ -131,10 +131,7 @@ class Contacts:
return
if contact in self._contacts[account][contact.jid]:
self._contacts[account][contact.jid].remove(contact)
# It was the last resource of this contact ?
if not len(self._contacts[account][contact.jid]):
del self._contacts[account][contact.jid]
def remove_jid(self, account, jid):
'''Removes all contacts for a given jid'''
if not self._contacts.has_key(account):