the was* (wasop, wasvoice, washelp etc etc) comparison has been suggested before tho in a different context.
As for checking if the nick was opped in an on part/kick, you can do that already with:
on *:part:#channel: {
if ($nick isop #) { echo -s OP }
if ($nick isvoice #) { echo -s VOICE }
if (($nick isop #) && ($nick isvoice #)) { echo -s BOTH }
}
Try that sometime and see if it will do what you need it to
