summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/plugins/xep_0048/stanza.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0048/stanza.py b/slixmpp/plugins/xep_0048/stanza.py
index ddcc8841..7a2af4ee 100644
--- a/slixmpp/plugins/xep_0048/stanza.py
+++ b/slixmpp/plugins/xep_0048/stanza.py
@@ -6,6 +6,7 @@
See the file LICENSE for copying permission.
"""
+from slixmpp import JID
from slixmpp.xmlstream import ET, ElementBase, register_stanza_plugin
@@ -52,6 +53,12 @@ class Conference(ElementBase):
if value in ('1', 'true', True):
self._set_attr('autojoin', 'true')
+ def set_jid(self, value):
+ del self['jid']
+ if isinstance(value, JID):
+ value = value.full
+ self._set_attr('jid', value)
+
class URL(ElementBase):
name = 'url'