on *:text:!catch*:#:{ if ($nick isop $chan) { set %pokemon $iif($2 == on,$true,$iif($2 == off,$false)) } if %pokemon { .msg $chan $nick caught a $read(pokemon.txt) } else .msg $chan Sorry Pokemon catch is off }