kunt

golang IRC bot
git clone git://git.2f30.org/kunt
Log | Files | Refs | LICENSE

commit 6d7fbd13de00b44c7fb34e87abcf9007ee4d32e9
parent d5df9e476ed919d5f7c76bbe5d5cccbb0f711b67
Author: sin <sin@2f30.org>
Date:   Sat, 18 May 2013 13:32:11 +0100

stylistic change

Diffstat:
Msrc/games/hangman.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/games/hangman.go b/src/games/hangman.go @@ -109,7 +109,7 @@ func hangmanMainLoop(cs *hangmanState) { *cs.statchan <- hangmanEnd } else { cs.ictx.Privmsg(msg.Args[0], "You lost a life punk...") - cs.lives -= 1 + cs.lives-- cs.ictx.Privmsg(msg.Args[0], cs.String()) continue } @@ -121,7 +121,7 @@ func hangmanMainLoop(cs *hangmanState) { hm := cs.checkLetter([]rune(in)[0]) cs.ictx.Privmsg(msg.Args[0], fmt.Sprintf("You got %d letters", hm)) if hm == 0 { - cs.lives -= 1 + cs.lives-- } cs.ictx.Privmsg(msg.Args[0], cs.String()) if cs.foundnow == cs.goal {