is_closid_match
if (!from || is_closid_match(t, from) ||
if (is_closid_match(t, r) || is_rmid_match(t, r)) {