diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-27 13:02:08 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-27 13:02:08 +0100 |
commit | 96a9a883849371cf24f73ddb28d4bf7b5edf719d (patch) | |
tree | f08330cb3765c5428863c29c581130df13103f03 /src/core.py | |
parent | ea0f191555d509c0f679113b791064269cc064f9 (diff) | |
download | poezio-96a9a883849371cf24f73ddb28d4bf7b5edf719d.tar.gz poezio-96a9a883849371cf24f73ddb28d4bf7b5edf719d.tar.bz2 poezio-96a9a883849371cf24f73ddb28d4bf7b5edf719d.tar.xz poezio-96a9a883849371cf24f73ddb28d4bf7b5edf719d.zip |
Add a new option 'use_remote_bookmarks' to force local bookmarks if
needed
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py index 95cefc82..ecb0dfdd 100644 --- a/src/core.py +++ b/src/core.py @@ -572,7 +572,7 @@ class Core(object): self.events.trigger('send_normal_presence', pres) pres.send() bookmark.get_local() - if not self.xmpp.anon: + if not self.xmpp.anon and not config.get('use_remote_bookmarks', 'true').lower() == 'false': bookmark.get_remote(self.xmpp) for bm in [item for item in bookmark.bookmarks if item.autojoin]: tab = self.get_tab_by_name(bm.jid, tabs.MucTab) @@ -1714,6 +1714,9 @@ class Core(object): """ /bookmark [room][/nick] [autojoin] [password] """ + if config.get('use_remote_bookmarks', 'true').lower() == 'false': + self.command_bookmark_local(arg) + return args = common.shell_split(arg) nick = None if len(args) == 0 and not isinstance(self.current_tab(), tabs.MucTab): |