From 6bac4741f6ca7d73c43ae0fcb138b07e71ed1352 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 16 Jan 2013 16:26:19 -0800 Subject: Fix setting autojoin in bookmarks. --- sleekxmpp/plugins/xep_0048/stanza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp') diff --git a/sleekxmpp/plugins/xep_0048/stanza.py b/sleekxmpp/plugins/xep_0048/stanza.py index 2e30eb6a..21829392 100644 --- a/sleekxmpp/plugins/xep_0048/stanza.py +++ b/sleekxmpp/plugins/xep_0048/stanza.py @@ -50,7 +50,7 @@ class Conference(ElementBase): def set_autojoin(self, value): del self['autojoin'] if value in ('1', 'true', True): - self._set_sub_text('autojoin', 'true') + self._set_attr('autojoin', 'true') class URL(ElementBase): -- cgit v1.2.3