diff options
author | Nathan Fritz <nathan@andyet.net> | 2011-04-15 17:43:12 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2011-04-15 17:43:12 -0700 |
commit | 8a22597180cd9ec672515218aed1abe3529d2104 (patch) | |
tree | f364127ef1bb2c5c6bb88b62dea017dc9fa51dc0 | |
parent | e919906c8c4af29d0d85f0f3537d99dcf37e8cb5 (diff) | |
download | slixmpp-8a22597180cd9ec672515218aed1abe3529d2104.tar.gz slixmpp-8a22597180cd9ec672515218aed1abe3529d2104.tar.bz2 slixmpp-8a22597180cd9ec672515218aed1abe3529d2104.tar.xz slixmpp-8a22597180cd9ec672515218aed1abe3529d2104.zip |
added has_jid to roster
-rw-r--r-- | sleekxmpp/roster.py | 4 |
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__() |