Fix bug in JID class. Attribute .jid now works properly.

This commit is contained in:
Lance Stout 2011-01-13 10:21:20 -05:00
parent b71550cec7
commit 632827f213

View file

@ -71,7 +71,7 @@ class JID(object):
if self._domain is None:
self._domain = self._jid.split('@', 1)[-1].split('/', 1)[0]
return self._domain or ""
elif name == 'full':
elif name in ('full', 'jid'):
return self._jid or ""
elif name == 'bare':
if self._bare is None: