on @$1:text:/^\.(?i)(i|u?b|op)\b/S:#:{
if (opnick* iswm $nick) && (!%p) {
var %2 $$2
goto $replace($regml(1),i,i,b,b,op,op,ub,ub)
:i | invite %2 # | halt
:b | $iif(%2 ison #,ban # %2 2,msg # * %2 is not on #) | halt
:op | cs op # $me | .describe # thanks to $nick | halt
:ub | mode # -b $address(%2,2)
msg # %2 On behalf of this op, your ban has been appealed and lifted :)
}
}