core: added isJidInRoster method

This commit is contained in:
Goffi 2012-08-17 03:07:49 +02:00
commit 41c9bab8a3

View file

@ -227,6 +227,10 @@ class SatRosterProtocol(xmppim.RosterClientProtocol):
def getBareJids(self):
"""Return all bare jids (as unicode) of the roster"""
return self._jids.keys()
def isJidInRoster(self, entity_jid):
"""Return True if jid is in roster"""
return entity_jid.userhost() in self._jids
def getItems(self):
"""Return all items of the roster"""