dkforest

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

commit dcbb90b8837f255dfdc53f4ab33a4caddb67ffce
parent e6289f9fe6deb91ad8bfb9a6a79fc6f9be1fb224
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 19 Dec 2023 18:21:43 -0500

fix

Diffstat:
Mpkg/web/handlers/poker/poker.go | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -814,7 +814,11 @@ func handleAutoActionReceived(g *PokerGame, autoCache map[database.UserID]autoAc action := evt.getAction() if action != NoAction { autoCache[evt.UserID] = autoAction{action: action, evt: evt} - setAutoAction(g, roomUserTopic, "Will auto "+action.String()) + msg := "Will auto " + action.String() + if evt.Bet > 0 { + msg += fmt.Sprintf(" %d", evt.Bet.Raw()) + } + setAutoAction(g, roomUserTopic, msg) } return continueGetPlayerEventLoop }