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
1 changed files with 4 additions and 0 deletions

View File

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