summaryrefslogtreecommitdiff
path: root/src/bookmark.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-01-26 10:04:42 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-01-26 10:05:37 +0100
commita3344b11b2ea7ac17097b8db4b703bb9f6c02912 (patch)
treea57863a65f58d258abe2eb46ccd477347ffb0fdd /src/bookmark.py
parentd6989db025b2f391c2d309ae9a4c4c8c094e764c (diff)
downloadpoezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.tar.gz
poezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.tar.bz2
poezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.tar.xz
poezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.zip
Handle autojoin="1" for bookmarks.
Diffstat (limited to 'src/bookmark.py')
-rw-r--r--src/bookmark.py2
1 files changed, 1 insertions, 1 deletions
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