Make sure you and the client running the code are opped:
on @*:TEXT:*:#: { if ($nick isop #) $iif($$2 ison # && $strip($1) = !ban,$mid($v1,2) -k # $2 2 $3-,.msg # $nick $+ $chr(44) $2 is not found!) }
this will also work for all the ops only.