global user to fix repl

master
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 """Initialize the REPL mode, read config files and start the TUI client
""" """
function repl() function repl()
global user
userinfo = load_secret_or_login(load_config_file()) userinfo = load_secret_or_login(load_config_file())
repl_init(Base.active_repl) repl_init(Base.active_repl)
userinfo user = MatrixUser(userinfo...)
MatrixChat.updateroomlist(user)
syncstatus = MatrixSync(user)
user
end end
######## ########