summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2011-04-15 17:43:12 -0700
committerNathan Fritz <nathan@andyet.net>2011-04-15 17:43:12 -0700
commit8a22597180cd9ec672515218aed1abe3529d2104 (patch)
treef364127ef1bb2c5c6bb88b62dea017dc9fa51dc0 /sleekxmpp/roster.py
parente919906c8c4af29d0d85f0f3537d99dcf37e8cb5 (diff)
downloadslixmpp-8a22597180cd9ec672515218aed1abe3529d2104.tar.gz
slixmpp-8a22597180cd9ec672515218aed1abe3529d2104.tar.bz2
slixmpp-8a22597180cd9ec672515218aed1abe3529d2104.tar.xz
slixmpp-8a22597180cd9ec672515218aed1abe3529d2104.zip
added has_jid to roster
Diffstat (limited to 'sleekxmpp/roster.py')
-rw-r--r--sleekxmpp/roster.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/roster.py b/sleekxmpp/roster.py
index 23764f88..1972a92e 100644
--- a/sleekxmpp/roster.py
+++ b/sleekxmpp/roster.py
@@ -179,6 +179,10 @@ class RosterNode(object):
"""Return a list of all subscribed JIDs."""
return self._jids.keys()
+ def has_jid(self, jid):
+ """Returns whether the roster has a JID."""
+ return jid in self._jids
+
def __iter__(self):
"""Iterate over the roster items."""
return self._jids.__iter__()