/updatenl
Usually the channel nicknames list and IAL in a kick/part/quit script event are updated after the script finishes, this command updates them immediately
</help>

Unless something recently changed, $opnick should still appear to be opped in a DEOP event.

Code:
On *:DEOP:#: {
  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.
}

See Also this post where I also explained this effect just recently.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!