could use this:
on $*:TEXT:((!op|!deop|!protect|!deprotect|!halfop|!dehalfop|!voice|!devoice|!join|!part)):#:{ if ($me !isop #) { .halt } elseif ($regml(1) == (!join|!part)) { . $+ $remove($regml(1),!) $2 } else { .cs $remove($regml(1),!) # $nick } }
regex ftw!