summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-15 19:36:02 +0200
committermathieui <mathieui@mathieui.net>2021-04-15 19:36:02 +0200
commit7555b8090c5f9b968e26a02542e6a221694ee81b (patch)
tree3a7208887796a59c556a167299ad93aecff6ab15
parent63d51c463021dc1e16873814058f06eb43a9b69b (diff)
downloadpoezio-7555b8090c5f9b968e26a02542e6a221694ee81b.tar.gz
poezio-7555b8090c5f9b968e26a02542e6a221694ee81b.tar.bz2
poezio-7555b8090c5f9b968e26a02542e6a221694ee81b.tar.xz
poezio-7555b8090c5f9b968e26a02542e6a221694ee81b.zip
fix: /join with passwords
-rw-r--r--poezio/core/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 85aa76e8..5c3c51f5 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -342,6 +342,7 @@ class CommandCore:
def _parse_join_jid(self, jid_string: str) -> Tuple[Optional[str], Optional[str]]:
# we try to join a server directly
+ server_root = False
try:
if jid_string.startswith('@'):
server_root = True
@@ -350,7 +351,7 @@ class CommandCore:
info = JID(jid_string)
server_root = False
except InvalidJID:
- return (None, None)
+ info = JID('')
set_nick: Optional[str] = ''
if len(jid_string) > 1 and jid_string.startswith('/'):