GuitarMasterx7, you cannot put the command in the input event as a match text. It has to be done as such:
on *:INPUT:#: { if ($1 == !chanlist) {