This is a channel check with on and off feature.
Commands -
!whois on - Turns Auto Whois on join on (Must be hop or higher.)
!whois off - Turns Auto Whois on join off (Must be hop or higher.)
on *:text:!kombat*:#: {
if (%fight2 == active) {
msg $chan 4,0 a Match is already underway! Wait your turn!
}
if (%fight == active) {
set %player2 $nick
if (%player2 = %player1) { halt }
msg $chan 4,0 the match is set! 0,4 %player1 4,0 vs 0,4 %player2