Handle autojoin="1" for bookmarks.

This commit is contained in:
Florent Le Coz 2012-01-26 10:04:42 +01:00
parent d6989db025
commit a3344b11b2

View file

@ -78,7 +78,7 @@ class Bookmark(object):
""" """
jid = el.get('jid') jid = el.get('jid')
name = el.get('name') name = el.get('name')
autojoin = True if el.get('autojoin', False) == 'true' else False autojoin = True if el.get('autojoin', 'false').lower() in ('true', '1') else False
nick = None nick = None
for n in iter(el, 'nick'): for n in iter(el, 'nick'):
nick = nick.text nick = nick.text