on !*:part:#:{
var %owners = $calc($nick($chan,0,q) $iif($nick isowner $chan,- 1)), $&
%ops = $calc($nick($chan,0,o) $iif($nick isop $chan,- 1)), $&
%voices = $calc($nick($chan,0,v) $iif($nick isvoice $chan,- 1)), $&
%regs = $calc($nick($chan,0,r) $iif($nick isreg $chan,- 1)), %all = $calc($nick($chan,0) - 1)
}