fix: /join with passwords

This commit is contained in:
mathieui 2021-04-15 19:36:02 +02:00
parent 63d51c4630
commit 7555b8090c

View file

@ -342,6 +342,7 @@ class CommandCore:
def _parse_join_jid(self, jid_string: str) -> Tuple[Optional[str], Optional[str]]: def _parse_join_jid(self, jid_string: str) -> Tuple[Optional[str], Optional[str]]:
# we try to join a server directly # we try to join a server directly
server_root = False
try: try:
if jid_string.startswith('@'): if jid_string.startswith('@'):
server_root = True server_root = True
@ -350,7 +351,7 @@ class CommandCore:
info = JID(jid_string) info = JID(jid_string)
server_root = False server_root = False
except InvalidJID: except InvalidJID:
return (None, None) info = JID('')
set_nick: Optional[str] = '' set_nick: Optional[str] = ''
if len(jid_string) > 1 and jid_string.startswith('/'): if len(jid_string) > 1 and jid_string.startswith('/'):