diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-05-24 16:21:14 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-05-24 16:21:14 +0200 |
commit | 3d912230664e7179b0f6dc58b8b454118cca033e (patch) | |
tree | a72e165324d7e050bd0115835c84c4b592f9e70c /poezio | |
parent | cfa75f8877963cfee9c22565dad60ddf7dee3c95 (diff) | |
download | poezio-3d912230664e7179b0f6dc58b8b454118cca033e.tar.gz poezio-3d912230664e7179b0f6dc58b8b454118cca033e.tar.bz2 poezio-3d912230664e7179b0f6dc58b8b454118cca033e.tar.xz poezio-3d912230664e7179b0f6dc58b8b454118cca033e.zip |
Rename bookmark_on_join to synchronise_open_rooms
Also add some more documentation about it.
Diffstat (limited to 'poezio')
-rw-r--r-- | poezio/config.py | 2 | ||||
-rw-r--r-- | poezio/core/commands.py | 2 | ||||
-rw-r--r-- | poezio/tabs/muctab.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/poezio/config.py b/poezio/config.py index 09d465cd..9a51e53f 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -38,7 +38,6 @@ DEFAULT_CONFIG = { 'autorejoin_delay': '5', 'autorejoin': False, 'beep_on': 'highlight private invite disconnect', - 'bookmark_on_join': False, 'ca_cert_path': '', 'certificate': '', 'certfile': '', @@ -133,6 +132,7 @@ DEFAULT_CONFIG = { 'show_useless_separator': True, 'status': '', 'status_message': '', + 'synchronise_open_rooms': True, 'theme': 'default', 'themes_dir': '', 'tmp_image_dir': '', diff --git a/poezio/core/commands.py b/poezio/core/commands.py index 46dab5cc..176d0e73 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -401,7 +401,7 @@ class CommandCore: tab.password = password tab.join() - if config.get('bookmark_on_join'): + if config.get('synchronise_open_rooms'): method = 'remote' if config.get( 'use_remote_bookmarks') else 'local' self._add_bookmark('%s/%s' % (room, nick), True, password, method) diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index b37b725e..0df8eedc 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1489,7 +1489,7 @@ class MucTab(ChatTab): /leave [msg] """ self.leave_room(msg) - if config.get('bookmark_on_join'): + if config.get('synchronise_open_rooms'): self.core.bookmarks.remove(self.jid) self.core.bookmarks.save(self.core.xmpp) self.core.close_tab(self) |