From a3344b11b2ea7ac17097b8db4b703bb9f6c02912 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 26 Jan 2012 10:04:42 +0100 Subject: [PATCH] Handle autojoin="1" for bookmarks. --- src/bookmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bookmark.py b/src/bookmark.py index 45616d93..b63ddbdf 100644 --- a/src/bookmark.py +++ b/src/bookmark.py @@ -78,7 +78,7 @@ class Bookmark(object): """ jid = el.get('jid') 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 for n in iter(el, 'nick'): nick = nick.text