on *:text:*:%hangman.chan: { if ($1 == !join) { if (%hangman.status == off) || (%hangman.status == $null) { msg %hangman.chan Hangman is not currently running, we will not be accepting players at this time, sorry. | halt } else { if (%players < 6) { if ($hget(Players,$+($nick.joined)) = $true ) { msg %hangman.chan Sorry but you already have registered, let other people play. } else { msg %hangman.chan Ladies and Gentlemen, $nick has joined the game! We now have %players Players ready to play. hadd Players $+($nick,.joined) $ctime inc %players } } elseif (%players > 6) { msg %hangman.chan We have all 5 players registered and ready to play. Game will begin. } } } }