dkforest

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

commit f4210833c2f7d7c00ccfccef092c8218cc806016
parent d531abe2e78f2519766e176148021776a5a64e57
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 15 Dec 2023 19:40:44 -0500

fix err msg

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1094,11 +1094,11 @@ func (g *PokerGame) Deal(db *database.DkfDB, roomID RoomID, authUser *database.U roomTopic := roomID.Topic() roomUserTopic := roomID.UserTopic(authUser.Username) if g.CountEligibleSeated() < 2 { - PokerPubSub.Pub(roomTopic, ErrorMsgEvent{Message: "need at least 2 players"}) + PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: "need at least 2 players"}) return } if !g.IsGameStarted.CompareAndSwap(false, true) { - PokerPubSub.Pub(roomTopic, ErrorMsgEvent{Message: "game already ongoing"}) + PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: "game already ongoing"}) return }