summaryrefslogtreecommitdiff
path: root/poezio/core
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-07 19:47:31 +0100
committermathieui <mathieui@mathieui.net>2021-02-07 19:49:31 +0100
commit35af9136627a290b2f07391bd9abdcc6e414e08b (patch)
tree1d409b1a9832bd1418708d89055434f5a2132b6d /poezio/core
parent9894e160456be6ac179e5279540f1b2577bda8d8 (diff)
downloadpoezio-35af9136627a290b2f07391bd9abdcc6e414e08b.tar.gz
poezio-35af9136627a290b2f07391bd9abdcc6e414e08b.tar.bz2
poezio-35af9136627a290b2f07391bd9abdcc6e414e08b.tar.xz
poezio-35af9136627a290b2f07391bd9abdcc6e414e08b.zip
/join: Fix autobookmarking
(broken when moving bookmarks to async)
Diffstat (limited to 'poezio/core')
-rw-r--r--poezio/core/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index a1b6db54..964bd0a7 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -382,7 +382,7 @@ class CommandCore:
return (room, set_nick)
@command_args_parser.quoted(0, 2)
- def join(self, args):
+ async def join(self, args):
"""
/join [room][/nick] [password]
"""
@@ -428,7 +428,7 @@ class CommandCore:
if config.get('synchronise_open_rooms') and room not in self.core.bookmarks:
method = 'remote' if config.get(
'use_remote_bookmarks') else 'local'
- self._add_bookmark(
+ await self._add_bookmark(
room=room,
nick=nick if not config_nick else None,
autojoin=True,