From 96a9a883849371cf24f73ddb28d4bf7b5edf719d Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 27 Nov 2011 13:02:08 +0100 Subject: Add a new option 'use_remote_bookmarks' to force local bookmarks if needed --- src/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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): -- cgit v1.2.3