dkforest

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

commit b4154b85646ca1b26668fb4464006b7353d2ff0b
parent 103fbc6f0d13f9e85606c486ef368e1e618fa570
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 27 Dec 2023 16:42:54 -0500

cleanup

Diffstat:
Mpkg/web/handlers/poker.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go @@ -390,6 +390,10 @@ func PokerRakeBackHandler(c echo.Context) error { func PokerTableHandler(c echo.Context) error { roomID := c.Param("roomID") + g := poker.PokerInstance.GetGame(poker.RoomID(roomID)) + if g == nil { + return c.Redirect(http.StatusFound, "/") + } var data pokerTableData data.PokerTableSlug = roomID return c.Render(http.StatusOK, "poker-table", data)