Commit b705aba4 authored by Link Mauve's avatar Link Mauve
Browse files

Add an autojoined bookmark on /join.

parent 5f5cc186
......@@ -137,6 +137,10 @@ use_bookmarks_method =
# autojoin, to be open on startup
#open_all_bookmarks = false
# Will create a bookmark on manual /join, using your preferred
# storage method
#bookmark_on_join = true
# What will be put after the name, when using autocompletion at the
# beginning of the input. A space will always be added after that
#after_completion = ,
......
......@@ -33,6 +33,7 @@ DEFAULT_CONFIG = {
'autorejoin_delay': '5',
'autorejoin': False,
'beep_on': 'highlight private invite disconnect',
'bookmark_on_join': True,
'ca_cert_path': '',
'certificate': '',
'certfile': '',
......
......@@ -406,6 +406,10 @@ class CommandCore:
tab.password = password
tab.join()
if config.get('bookmark_on_join'):
method = 'remote' if config.get('use_remote_bookmarks') else 'local'
self._add_bookmark('%s/%s' % (room, nick), True, password, method)
if tab == self.core.current_tab():
tab.refresh()
self.core.doupdate()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment