this script seems similar to one script someone was writing for me. I'm wanting to remove -irm (invite only, registered, moderated) if another op modifies the mode.
Code:
on @*:MODE:#channel:{
  if ($nick != $Me) {
   var %modes = $regsubex($1,/-[^+]+/g,$null)
  if (%modes) && ($regex(%modes,/\+(?:[^imr]+)?[imr]/g)) { mode $chan -irm }
}
}


but I don't know regex enough to know what this code actually means. I just want it to remove modes that are set by other ops.