hello

can you tell me please how to make these protect entries to expire (be deleted from the protect list) when I leave the channels or I quit mirc?

I think I have to use /protect -r but I cant figure out how -r switch works

thanks!

Code:
on me:^&*:join:#: {
  .timer 1 1 checkregs #
}
alias checkregs {
  if (!$1) { return }
  var %loop = 1, %regs = $nick($1,0,a,r)
  while (%loop <= %regs) {
    protect $nick($1,%loop,a,r) 2
    inc %loop
  }
}