Commit 90d5e6da authored by Philipp Hörist's avatar Philipp Hörist

JID: Add method to make the JID bare

parent 3946f35b
......@@ -874,6 +874,12 @@ class JID:
return self.__str__(0)
def setBare(self):
Deletes the resource which makes the JID bare
self.resource = ''
def isBare(self):
return self.node and self.domain and not self.resource
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment