1
0
Fork 0
forked from External/ergo
This commit is contained in:
Shivaram Lingamneni 2019-05-21 23:55:04 -04:00
parent eaf0328608
commit 1121e3d320
3 changed files with 8 additions and 1 deletions

View file

@ -154,7 +154,9 @@ func hsOnOffHandler(server *Server, client *Client, command string, params []str
}
_, err := server.accounts.VHostSetEnabled(client, enable)
if err != nil {
if err == errNoVhost {
hsNotice(rb, client.t(err.Error()))
} else if err != nil {
hsNotice(rb, client.t("An error occurred"))
} else if enable {
hsNotice(rb, client.t("Successfully enabled your vhost"))