Most events will respond to ison,isop,isvoice,isreg... etc as if the event hasn't occured yet. It does exactly as you want it to. If you want to check the outcome of the event, use /updatenl (Update Nick List) in the script and all operators and identifiers will reflect post-event statuses.
On *:OP:#: {
echo -a $opnick was $iif($opnick isop $chan,Opped,NOT Opped) before this event.
updatenl
echo -a $opnick is now $iif($opnick isop $chan,Opped,NOT Opped) after this event.
}
- Raccoon