diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-01-26 10:04:42 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-01-26 10:05:37 +0100 |
commit | a3344b11b2ea7ac17097b8db4b703bb9f6c02912 (patch) | |
tree | a57863a65f58d258abe2eb46ccd477347ffb0fdd /src | |
parent | d6989db025b2f391c2d309ae9a4c4c8c094e764c (diff) | |
download | poezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.tar.gz poezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.tar.bz2 poezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.tar.xz poezio-a3344b11b2ea7ac17097b8db4b703bb9f6c02912.zip |
Handle autojoin="1" for bookmarks.
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmark.py | 2 |
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 |