fix: Matrix relogin UnboundLocalError (#2516)

Co-authored-by: WODE25500 <318555974+WODE25500@users.noreply.github.com>
This commit is contained in:
WODE25500
2026-09-09 13:51:42 +08:00
committed by GitHub
parent 267232c24f
commit fc1c998434
2 changed files with 63 additions and 2 deletions
+2 -2
View File
@@ -682,8 +682,8 @@ class MatrixAdapter(abstract_platform_adapter.AbstractMessagePlatformAdapter):
lines.append(f'[{bridge.user_id}] 跳过(未配置登录命令或无DM房间)')
continue
# Use configured logout command, fallback to deriving from login command
logout_cmd = bridge.logout_command or bridge.login_command.replace('login', 'logout')
# Use configured logout command, fallback to deriving from login command
logout_cmd = bridge.logout_command or bridge.login_command.replace('login', 'logout')
lines.append(f'[{bridge.user_id}] 发送 "{logout_cmd}"...')
# Cancel existing tasks