3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

fix HS STATUS for logged-out users

This commit is contained in:
Shivaram Lingamneni 2019-02-14 13:10:35 -05:00
parent 93c17e6b98
commit 9ce1d31b90

View File

@ -206,6 +206,10 @@ func hsStatusHandler(server *Server, client *Client, command string, params []st
accountName = params[0] accountName = params[0]
} else { } else {
accountName = client.Account() accountName = client.Account()
if accountName == "" {
hsNotice(rb, client.t("You're not logged into an account"))
return
}
} }
account, err := server.accounts.LoadAccount(accountName) account, err := server.accounts.LoadAccount(accountName)