dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 48c76736bc2818b9b11127256bd39465798eebb5
parent 9da4b9db1e7864beb35df884b1c91554aa866013
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed,  7 Jun 2023 07:29:50 -0700

cleanup

Diffstat:
Mpkg/web/handlers/api/v1/slashInterceptor.go | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/pkg/web/handlers/api/v1/slashInterceptor.go b/pkg/web/handlers/api/v1/slashInterceptor.go @@ -1768,13 +1768,12 @@ func handleRefreshCmd(c *Command) (handled bool) { func handleCodeCmd(c *Command) (handled bool) { if c.message == "/code" { c.err = ErrRedirect - if !c.authUser.UseStream { - c.err = errors.New("only work on stream version of this chat") - return true - } if !c.authUser.CanUseMultiline { c.err = errors.New("multiline is disabled for your account") return true + } else if !c.authUser.UseStream { + c.err = errors.New("only work on stream version of this chat") + return true } payload := database.ChatMessageType{} if c.modMsg {