Commit 0783d913 authored by Philipp Hörist's avatar Philipp Hörist

JID: Return correct bare jid

parent 136dfd21
Pipeline #5385 failed with stages
in 15 seconds
......@@ -895,12 +895,16 @@ class JID:
"""
Return the bare representation of JID. I.e. string value w/o resource
"""
if not self.node:
return self.domain
return '%s@%s' % (self.node, self.domain)
def getBare(self):
"""
Return the bare representation of JID. I.e. string value w/o resource
"""
if not self.node:
return self.domain
return '%s@%s' % (self.node, self.domain)
def setBare(self):
......
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