diff --git a/src/common/contacts.py b/src/common/contacts.py index 8cde9ca53..5383c4b88 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -139,7 +139,7 @@ class Contacts: '''Removes all contacts for a given jid''' if not self._contacts.has_key(account): return - if not self._contacts[account].has_key(contact.jid): + if not self._contacts[account].has_key(jid): return del self._contacts[account][jid]