forked from External/ergo
fix HS STATUS for logged-out users
This commit is contained in:
parent
93c17e6b98
commit
9ce1d31b90
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue