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:
parent
93c17e6b98
commit
9ce1d31b90
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user