global user to fix repl

This commit is contained in:
Nicolò Balzarotti 2018-09-17 13:38:14 +02:00
parent a4d501da99
commit 6bd0256917
1 changed files with 5 additions and 1 deletions

View File

@ -799,9 +799,13 @@ end
"""Initialize the REPL mode, read config files and start the TUI client
"""
function repl()
global user
userinfo = load_secret_or_login(load_config_file())
repl_init(Base.active_repl)
userinfo
user = MatrixUser(userinfo...)
MatrixChat.updateroomlist(user)
syncstatus = MatrixSync(user)
user
end
########