From b705aba4e2eca82433b7143bc7bfe2f5ef2d13d4 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 23 Nov 2017 17:55:54 +0000 Subject: Add an autojoined bookmark on /join. --- poezio/core/commands.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'poezio/core/commands.py') diff --git a/poezio/core/commands.py b/poezio/core/commands.py index ab0ced9a..91d98030 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -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() -- cgit v1.2.3