tPrevent users from using an already registered nick - scoreboard - Interactive scoreboard for CTF-like games
HTML git clone git://git.z3bra.org/scoreboard.git
DIR Log
DIR Files
DIR Refs
---
DIR commit f5a66d0061f0b62d09dc9fc96a863e510e048782
DIR parent 8dd4d90cb5bbc0caee98548425f2e19acd5b9b8b
HTML Author: Willy Goiffon <contact@z3bra.org>
Date: Tue, 22 Aug 2023 15:51:56 +0200
Prevent users from using an already registered nick
Diffstat:
M player.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/player.go b/player.go
t@@ -151,7 +151,7 @@ func (p *Player) Exists() bool {
var count int
query := `SELECT
- count(id)
+ count(*)
FROM score
WHERE
name = ?