summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-06-08 12:28:07 +0200
committermathieui <mathieui@mathieui.net>2013-06-08 12:28:07 +0200
commit545e67c500595c3bb72ed18791717781e4b1581e (patch)
treef7a7a60b05b8c39010dddf9eb75a1c4c723eb9a1 /src/core.py
parent463ec5ca0d904f62afac9ef5c6c146d9490103c5 (diff)
downloadpoezio-545e67c500595c3bb72ed18791717781e4b1581e.tar.gz
poezio-545e67c500595c3bb72ed18791717781e4b1581e.tar.bz2
poezio-545e67c500595c3bb72ed18791717781e4b1581e.tar.xz
poezio-545e67c500595c3bb72ed18791717781e4b1581e.zip
Fix setting autojoin with /bookmark
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core.py b/src/core.py
index 2605aeb6..fc3a5458 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1920,7 +1920,7 @@ class Core(object):
password = None
elif args[0] == '*':
if len(args) > 1:
- autojoin = False if args[1].lower() == 'false' else True
+ autojoin = False if args[1].lower() != 'true' else True
else:
autojoin = True
for tab in self.tabs:
@@ -1948,7 +1948,7 @@ class Core(object):
return
roomname = self.current_tab().get_name()
if len(args) > 1:
- autojoin = False if args[1].lower() == 'false' else True
+ autojoin = False if args[1].lower() != 'true' else True
else:
autojoin = True
if len(args) > 2:
@@ -1964,8 +1964,7 @@ class Core(object):
bm.nick = nick
if password:
bm.password = password
- if autojoin:
- bm.autojoin = autojoin
+ bm.autojoin = autojoin
if bookmark.save_remote(self.xmpp):
self.information('Bookmark added.', 'Info')
self.information(_('Your remote bookmarks are now: %s') %