on $*:TEXT:/^[.!]part/Si:#:{ if ($nick isop $chan || $nick ishop $chan) { part $chan Thanks for using the part command instead of kicking. } }