diff options
Diffstat (limited to 'src/contact.py')
-rw-r--r-- | src/contact.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/contact.py b/src/contact.py index 0d7276f9..62092057 100644 --- a/src/contact.py +++ b/src/contact.py @@ -47,6 +47,11 @@ class Resource(object): def __repr__(self): return '<%s>' % self._jid + def __eq__(self, value): + if not isinstance(value, Resource): + return False + return self.jid == value.jid and self._data == value._data + class Contact(object): """ This a way to gather multiple resources from the same bare JID. |