diff options
-rw-r--r-- | nbxmpp/protocol.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/protocol.py b/nbxmpp/protocol.py index 527f7e5..79008f3 100644 --- a/nbxmpp/protocol.py +++ b/nbxmpp/protocol.py @@ -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): |