on @!*:DEOP:#: {
if ($opnick == $me) {
inc %deoptimes
if (%deoptimes == 1) { commands when deopped once. }
elseif (%deoptimes == 2) { commands when deopped twice. }
elseif (%deoptimes == 3) { commands when deopped three times. }
else { commands when it doesnt match the above three statements. }
}
}